search

Home  >  Q&A  >  body text

node.js - npm install全局安装出错,请问如何解决?谢谢!

本人小白一枚,自学前端开发,跟着网上的视频,做练习时遇到了一些问题:想通过npm安装yo,但是总是无法安装。之前想安装webpakge也总是报Error,尝试网上的很多方法,但都无法解决。恳请遇到过相同问题的朋友给出一个解决办法,谢谢!
][1]

迷茫迷茫2787 days ago306

reply all(3)I'll reply

  • 迷茫

    迷茫2017-04-17 15:41:41

    Thank you everyone, I found a solution. Delete npmrc file. (Note: It is not the npmrc file under the npm module in the nodejs installation directory, but the .npmrc file under C:Users{Account}....)

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:41:41

    Don’t have administrator rights? The picture is too small to see clearly

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 15:41:41

    Do you have a win system? ? If yes, check if you use administrator rights when installing npm packages under win system
    This is similar to the need to enter sudo when installing globally on mac sudo npm install webpack -g

    reply
    0
  • Cancelreply