I'm trying to install corss-env on fresh Laravel 5.5 project.
I'm using
node v6.12.0
nmp 3.10.10
Vagrant 2.0.1
laravel/homestead (virtualbox, 4.0.0) on Windows 10
Ubuntu 16.04.3 LTS
I have been searching on the web, I'll try the following suggestions, but neither have solved the issue
https://github.com/JeffreyWay/laravel-mix/issues/478
https://github.com/react-boilerplate/react-boilerplate/issues/493
https://github.com/JeffreyWay/laravel-mix/issues/805
https://laracasts.com/discuss/channels/laravel/laravel-mix-windows-npm-error?page=1
This is the console output
$ npm install --save-dev cross-env
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 4.4.0-92-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "cross-env"
npm ERR! node v6.12.0
npm ERR! npm v3.10.10
npm ERR! path ../cross-env/dist/bin/cross-env.js
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink
npm ERR! EPROTO: protocol error, symlink '../cross-env/dist/bin/cross-env.js' -> '/home/vagrant/code/laravel-5.5/node_modules/.bin/cross-env'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/vagrant/code/laravel-5.5/npm-debug.log
Related
I using from this command "nvm install node" and then nvm use 11, but get me bellow error:
npm ERR! notsup Required: {"node":">=14.15.0 <15"}
npm ERR! notsup Actual: {"npm":"6.7.0","node":"11.15.0"}
But I need just to use nvm use 11, what can I do? (witch version of npm?)
My system is Mac.
My error is:
> npm install && npx cordova prepare && npx gulp
npm ERR! code ENOTSUP
npm ERR! notsup Unsupported engine for moodlemobile#3.9.6-dev: wanted: {"node":">=14.15.0 <15"} (current: {"node":"11.15.0","npm":"6.7.0"})
npm ERR! notsup Not compatible with your version of node/npm: moodlemobile#3.9.6-dev
npm ERR! notsup Not compatible with your version of node/npm: moodlemobile#3.9.6-dev
npm ERR! notsup Required: {"node":">=14.15.0 <15"}
npm ERR! notsup Actual: {"npm":"6.7.0","node":"11.15.0"}
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/asheq/.npm/_logs/2021-09-02T04_50_08_043Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! moodlemobile#3.9.6-dev setup: `npm install && npx cordova prepare && npx gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the moodlemobile#3.9.6-dev setup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/asheq/.npm/_logs/2021-09-02T04_50_08_060Z-debug.log
When I am starting my backend in the angular using the node app.js command in the terminal it shows some error
I tried all the methods like npm-install or npm-install --save
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.2.7
npm WARN optional Skipping failed optional dependency /nodemon/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.2.7
npm WARN mongoose-type-url#1.0.5 requires a peer of mongoose# but none was installed.
npm ERR! Linux 4.15.0-44-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! file /home/suraj/contactly/sales-tool/salesapp/node_modules/.staging/encrypt-36282e46/package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token 'n' at 1:3
npm ERR! { name: 'encrypt',
npm ERR! ^
npm ERR! File: /home/suraj/contactly/sales-tool/salesapp/node_modules/.staging/encrypt-36282e46/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request:
npm ERR! /home/suraj/contactly/sales-tool/salesapp/npm-debug.log
want to fix the bug
I am trying to install babel using the following command:
npm install --save-dev babel-cli
which is throwing the following output.
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.2.3
npm WARN react-essential#1.0.0 No repository field.
npm ERR! Linux 4.4.0-122-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save-dev" "babel-cli"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path ../babel-cli/bin/babel-doctor.js
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink
npm ERR! EPROTO: protocol error, symlink '../babel-cli/bin/babel-doctor.js' -> '/code/ReactExampleFiles/Ch02/02_01/start/node_modules/.bin/babel-doctor'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Linux 4.4.0-122-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save-dev" "babel-cli"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path npm-debug.log.1893237937
npm ERR! code ETXTBSY
npm ERR! errno -26
npm ERR! syscall rename
npm ERR! ETXTBSY: text file is busy, rename 'npm-debug.log.1893237937' -> 'npm-debug.log'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /code/ReactExampleFiles/Ch02/02_01/start/npm-debug.log
On some research - it was suggested to try npm install --no-bin-links, which is still erroring out:
vagrant#ubuntu-xenial:/code/ReactExampleFiles/Ch02/02_01/start$ npm install --no-bin-links
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.2.3
npm WARN react-essential#1.0.0 No repository field.
Please suggest how to fix.
Try update version of npm. npm install npm -g or apt update npm.
I am unable to install yo from npm I have found these errors while running installation of yo, I have made all the paths for environment variables, but still getting error, i have also cleared the cache and re-install the nodejs , reboot my pc but still getting this error
$ npm install --global yo
npm WARN deprecated npmconf#2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
C:\Users\hp\AppData\Roaming\npm\yo -> C:\Users\hp\AppData\Roaming\npm\node_modules\yo\lib\cli.js
C:\Users\hp\AppData\Roaming\npm\yo-complete -> C:\Users\hp\AppData\Roaming\npm\node_modules\yo\lib\completion\index.js
spawn-sync#1.0.15 postinstall C:\Users\hp\AppData\Roaming\npm\node_modules\yo\node_modules\spawn-sync
node postinstall
npm#1.0.0 C:\Users\hp\AppData\Roaming\npm
`-- (empty)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn-sync#1.0.15 (node_modules\yo\node_modules\spawn-sync):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn-sync#1.0.15 postinstall: node postinstall
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status -4058
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--global" "yo"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! file ;C:\Program Files\Git\bin;C:\Program Files\Git\cmd
npm ERR! path ;C:\Program Files\Git\bin;C:\Program Files\Git\cmd
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn ;C:\Program Files\Git\bin;C:\Program Files\Git\cmd
npm ERR! spawn-sync#1.0.15 postinstall: node postinstall
npm ERR! spawn ;C:\Program Files\Git\bin;C:\Program Files\Git\cmd ENOENT
npm ERR!
npm ERR! Failed at the spawn-sync#1.0.15 postinstall script 'node postinstall'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node postinstall
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs spawn-sync
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.
npm#1.0.0 C:\Users\hp\AppData\Roaming\npm
`-- (empty)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn-sync#1.0.15 (node_modules\yo\node_modules\spawn-sync):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn-sync#1.0.15 postinstall: node postinstall
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status -4058
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--global" "yo"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! Callback called more than once.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\hp\npm-debug.log
npm ERR! code 1
Please tell me what is the problem with it.
Just install the latest version of nodejs and the error will get resolved.
Type the instructions in the terminal and node js will get updated:
$ sudo apt purge nodejs (for removing previous files of node js)
$ wget -qO- https://deb.nodesource.com/setup_7.x | sudo bash -(it will download latest version of node)
$ sudo apt-get install nodejs
and it is done.
Happened to me too... in recent distributions many packages install nodejs as the node.js executable, while spawn-sync attempts to call node, that is why this fails.
As a workaround, you can create a softlink from node to nodejs. Something like:
sudo ln -s `which nodejs` /usr/bin/node
I am trying to build rethinkdb from source and hitting on this error:
npm WARN engine amdefine#0.1.1: wanted: {"node":">=0.4.2"} (current: {"node":"0.13.0-pre","npm":"2.11.3"})
npm WARN engine mime-db#1.13.0: wanted: {"node":">= 0.6"} (current: {"node":"0.13.0-pre","npm":"2.11.3"})
npm http fetch 200 https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz
npm ERR! Linux 3.16.0-30-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "--userconfig" "/home/myth/rethinkdb/mk/support/config/npm.conf" "--cache" "/home/myth/rethinkdb/external/npm_cache-2cOLXsUU" "--cache" "/home/myth/rethinkdb/external/admin-deps_2.0.3.fetch-2Suk269g/npm-cache" "install"
npm ERR! node v0.13.0-pre
npm ERR! npm v2.11.3
npm ERR! code ENOTSUP
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your version of node/npm: vinyl-fs#0.3.13
npm ERR! notsup Required: {"node":">= 0.10"}
npm ERR! notsup Actual: {"npm":"2.11.3","node":"0.13.0-pre"}
npm ERR! Please include the following file with any support request:
npm ERR! /home/myth/rethinkdb/external/admin-deps_2.0.3.fetch-bcJwskoE/npm-debug.log
Full error log: ./build/external/admin-deps_2.0.3_fetch.log
make[1]: *** [external/admin-deps_2.0.3] Error 1
make: *** [make] Error 2
Seems like an appropriate version of npm is missing. Which version do I need?
How should I diagnose this problem?
It seems the problem is not RethinkDB, but the vinyl-fs (an npm module) which doesn't seem to like the fact that you're using a version of node with -pre. Perhaps you can try installing nvm and using 0.12 to install RethinKDB?