Fixing npm path in Windows 8 and 10

前端 未结 18 1608
孤街浪徒
孤街浪徒 2020-11-22 15:30

Have done a lot of googling, tried reinstalling node.js using the official installer, but my npm pathing still doesn\'t work.

This doesn\'t work

npm          


        
18条回答
  •  失恋的感觉
    2020-11-22 15:39

    If you can't work with npm packages, you propably has bad config with npm install packages, you try this:

    Run the following command in your terminal to revert back to the default registry

    npm config set registry https://registry.npmjs.org/
    

    https://docs.npmjs.com/misc/config#registry

提交回复
热议问题