nordnet / cordova-hot-code-push-cli

[DEPRECATED] - This is a command line utility for Cordova Hot Code Push Plugin.
https://github.com/nordnet/cordova-hot-code-push-cli/issues/79
144 stars 139 forks source link

Install error on my mac #55

Closed cjie closed 8 years ago

cjie commented 8 years ago
air:~ apple$ sudo npm install -g cordova-hot-code-push-cli
Password:
npm WARN peerDependencies The peer dependency level@~1.4.0 included from s3-sync-aws will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN deprecated queue-async@1.0.7: renamed to d3-queue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> ngrok@2.2.2 postinstall /usr/local/lib/node_modules/cordova-hot-code-push-cli/node_modules/ngrok
> node ./postinstall.js

sh: node: command not found
/
> leveldown@1.4.6 install /usr/local/lib/node_modules/cordova-hot-code-push-cli/node_modules/level/node_modules/leveldown
> prebuild --install

env: node: No such file or directory
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova-hot-code-push-cli"
npm ERR! node v4.4.7
npm ERR! npm  v2.15.8
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! ngrok@2.2.2 postinstall: `node ./postinstall.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ngrok@2.2.2 postinstall script 'node ./postinstall.js'.
npm ERR! This is most likely a problem with the ngrok package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./postinstall.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ngrok
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls ngrok
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/apple/npm-debug.log
nikDemyankov commented 8 years ago

node ./postinstall.js sh: node: command not found env: node: No such file or directory

Feels like it can't find node. Please, check that you have a correct path set to node executable.

First, type in the console node --version to check, that bash can find it. Also, to check the version of the node: you should be using 4+.

If it is not found - then you need to set path to it. Similar question regarding node: http://stackoverflow.com/questions/13593902/node-command-not-found

cjie commented 8 years ago

But I have already installed the latest version of node. node --version prints v4.4.7

cjie commented 8 years ago

In the same terminal window:

sh-3.2# node --version
v4.4.7
sh-3.2# sudo node --version
v4.4.7
sh-3.2#
sh-3.2# npm install -g cordova-hot-code-push-cli
npm WARN peerDependencies The peer dependency level@~1.4.0 included from s3-sync-aws will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN deprecated queue-async@1.0.7: renamed to d3-queue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> ngrok@2.2.2 postinstall /usr/local/lib/node_modules/cordova-hot-code-push-cli/node_modules/ngrok
> node ./postinstall.js

sh: node: command not found
cjie commented 8 years ago

I have solved this problem. Node does not be installed properly. Thanks.