NPM is not an internal command or an external command __node

Source: Internet
Author: User

As above, see Npm-v or install software, often jump out of the problem. NPM needs to join the environment variables.

As shown on the picture, create a new two file node_global\npm and add it to the environment variable.

The. npmrc file is found under the D:NODEJS\NODE_MODULES\NPM path, and its contents are changed to

Prefix=d:\nodejs\node_global
Cache=d:\nodejs\node_cache

Then reopen cmd, found Npm-v has been stuck here, exit needs to confirm, may be NPM recycle find files,

Need to see settings. C:\Users\ users to find the. npmrc file, after the deletion, the execution npm-v the smooth display version number.



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.