NPM should be run outside of the node repl, in your normal shell

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.