Node version: v0.12.4
When installing NPM install-g-supervisor is present:
NPM err! AddLocal Could not install D:\Program Files\nodejs
NPM err! Windows_NT 6.3.9600
NPM err! argv "D:\\Program files\\nodejs\\\\node.exe" "D:\\Program files\\
\\node_modules\\npm\\bin\\npm-cli.js "Install" "-G" "-supervisor"
NPM err! Node v0.12.4
NPM err! NPM v2.10.1
NPM err! Code Eisdir
NPM err! errno-4068
NPM err! Eisdir, read
NPM err!
NPM err! If you need help, your may report this error at:
NPM err!
NPM err! Please include the following file with any support request:
NPM err! D:\Program Files\nodejs\npm-debug.log
That is, if you want to run the node command, you need to be in the shell of the system, such as Windows CMD. Node comes with the name REPL, cannot run NPM command in it, can only run JS statement
Need to run under the other cmd file command line
NPM install-g supervisor can be;
Reference URL:
Http://stackoverflow.com/questions/24476805/how-to-resolve-npm-should-be-run-outside-of-the-node-repl-in-your-normal-shell
NPM should be run outside of the node repl, in your normal shell