can't install mean-cli, node, bower, gulp has already been installed - node.js

shaunstanislaus#Master ~ (master) $ sudo npm install -g mean-cli
Password:
\
mean-cli#0.10.12 preinstall /usr/local/lib/node_modules/mean-cli
node ./scripts/preinstall
sh: node: command not found
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "mean-cli"
npm ERR! node v0.12.2
npm ERR! npm v2.10.0
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! mean-cli#0.10.12 preinstall: node ./scripts/preinstall
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the mean-cli#0.10.12 preinstall script 'node ./scripts/preinstall'.
npm ERR! This is most likely a problem with the mean-cli package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./scripts/preinstall
npm ERR! You can get their info via:
npm ERR! npm owner ls mean-cli
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/shaunstanislaus/npm-debug.log
shaunstanislaus#Master ~ (master) $

Related

npm showing error if though if I edited package.json file

sh: 1: to: not found
npm ERR! Linux 4.13.0-32-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "start"
npm ERR! node v6.12.3
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! contact#1.0.0 start: `command to run here`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the contact#1.0.0 start script 'command to run here'.
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 contact package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! command to run here
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs contact
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls contact
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/manukumar/project/Nfriendship/Contact/npm-debug.log

npm meanio install failure

I'm trying to make an openshift MEAN stack application. I'm running npm install -g meanio
however it keeps throwing the following NPM errors:
npm ERR! addLocal Could not install /usr/local/lib/node_modules/meanio/lib/core_modules/server
npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v5.3.0
npm ERR! npm v3.3.12
npm ERR! No version provided in package.json
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! /usr/local/lib/node_modules/meanio/lib/core_modules/server/npm-debug.log
npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "meanio"
npm ERR! node v5.3.0
npm ERR! npm v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! meanio#0.8.83 postinstall: `cd ./lib/core_modules/server && npm install && cd ../../..`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the meanio#0.8.83 postinstall script 'cd ./lib/core_modules/server && npm install && cd ../../..'.
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 meanio package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cd ./lib/core_modules/server && npm install && cd ../../..
npm ERR! You can get their info via:
npm ERR! npm owner ls meanio
npm ERR! There is likely additional logging output above.
Any help or questions are appreciated.
The preferred way to create MEAN app is via mean-cli
$ npm install -g mean-cli
$ mean init <myApp>
$ cd <myApp> && npm install
Make sure you have prerequisites installed.
http://learn.mean.io/

Cannot install mean-cli via npm on Windows 7

Mean-cli is a package used to initialize meanio full stack javascript framework. But I cannot install it globally via npm. This is what I can provide you to understand what I mean.
C:\Windows\System32>npm install -g mean-cli
npm WARN engine mean-cli#0.9.14: wanted: {"node":"0.10.x","npm":"2.1.x"} (current:{"node":"0.10.34","npm":"1.4.28"})
> mean-cli#0.9.14 preinstall C:\Users\Rahul's\AppData\Roaming\npm\node_modules\mean-cli
> node ./scripts/preinstall
npm ERR! mean-cli#0.9.14 preinstall: `node ./scripts/preinstall`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the mean-cli#0.9.14 preinstall script.
npm ERR! This is most likely a problem with the mean-cli package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./scripts/preinstall
npm ERR! You can get their info via:
npm ERR! npm owner ls mean-cli
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "mean-cli"
npm ERR! cwd C:\Windows\System32
npm ERR! node -v v0.10.34
npm ERR! npm -v 1.4.28
npm ERR! syscall spawn
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! not ok code 0
C:\Windows\System32>npm install -g npm
C:\Users\Rahul's\AppData\Roaming\npm\npm -> C:\Users\Rahul's\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
npm#2.1.14 C:\Users\Rahul's\AppData\Roaming\npm\node_modules\npm
C:\Windows\System32>npm -v
2.1.14
C:\Windows\System32>npm install -g mean-cli
> mean-cli#0.9.14 preinstall C:\Program Files\nodejs\node_modules\mean-cli
> node ./scripts/preinstall
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "node" "C:\\Users\\Rahul's\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "mean-cli"
npm ERR! node v0.10.34
npm ERR! npm v2.1.14
npm ERR! file cmd
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! mean-cli#0.9.14 preinstall: `node ./scripts/preinstall`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the mean-cli#0.9.14 preinstall script 'node ./scripts/preinstall'.
npm ERR! This is most likely a problem with the mean-cli package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./scripts/preinstall
npm ERR! You can get their info via:
npm ERR! npm owner ls mean-cli
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Windows\System32\npm-debug.log
C:\Windows\System32>node -v
v0.10.34
C:\Windows\System32>npm -v
2.1.14
I have referred a stack overflow question where it was discussed that the node should be updated. My nodejs is updated and I have updated npm as you guys can see. But then I get .scripts/preinstall.js error. Saw their github ticket where they say that this issue has been resolved but still i am facing it. Any help would be appreciated.
I just ran into the same issue.
Running the console as Administrator fixed the issue for me.

Error installing gulp using nodejs on windows

I am getting the following error while installing gulp using nodejs on my windows OS. The following is the error I get when I type:
npm install -g gulp
This is the output I get:
npm ERR! v8flags#1.0.1 install: `node fetch.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the v8flags#1.0.1 install script.
npm ERR! This is most likely a problem with the v8flags package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node fetch.js
npm ERR! You can get their info via:
npm ERR! npm owner ls v8flags
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "E:\\Program Files\\nodejs\\\\node.exe" "E:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "gulp"
npm ERR! cwd C:\Users\pramod\Desktop
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! syscall spawn
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! not ok code 0

npm errow while try using yeoman generator

hello i try to run npm install -g yo but i have got error :
npm install -g yo
npm http GET https://registry.npmjs.org/yo
npm http 304 https://registry.npmjs.org/yo
npm ERR! Error: No compatible version found: yo
npm ERR! No valid targets found.
npm ERR! Perhaps not compatible with your version of node?
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:486:10)
npm ERR! at next_ (/usr/local/lib/node_modules/npm/lib/cache.js:436:17)
npm ERR! at next (/usr/local/lib/node_modules/npm/lib/cache.js:413:44)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:406:5
npm ERR! at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:151:7)
npm ERR! at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR!
npm ERR! System Linux 3.13.0-36-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yo"
npm ERR! cwd /home
npm ERR! node -v v0.6.18
npm ERR! npm -v 1.1.21
npm ERR! message No compatible version found: yo
npm ERR! message No valid targets found.
npm ERR! message Perhaps not compatible with your version of node?
npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR!
npm ERR! System Linux 3.13.0-36-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yo"
npm ERR! cwd /home
npm ERR! node -v v0.6.18
npm ERR! npm -v 1.1.21
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! message EACCES, open 'npm-debug.log'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/npm-debug.log
I havent got any idea what is wrong my npm version is 1.1.21 my node version is v0.6.18
Can you give me some advice what is wrong with that configuration ?
You need to upgrade your version of Node.js and npm.
From the Yeoman website:
Install prerequisites
Before installing Yeoman, you will need the following:
Node.js v0.10.x+
npm (which comes bundled with Node) v1.4.3+
git

Resources