Closed cjie closed 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
But I have already installed the latest version of node.
node --version
prints v4.4.7
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
I have solved this problem. Node does not be installed properly. Thanks.