本人小白一枚,自学前端开发,跟着网上的视频,做练习时遇到了一些问题:想通过npm安装yo,但是总是无法安装。之前想安装webpakge也总是报Error,尝试网上的很多方法,但都无法解决。恳请遇到过相同问题的朋友给出一个解决办法,谢谢!
][1]
迷茫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}....)
PHP中文网2017-04-17 15:41:41
Don’t have administrator rights? The picture is too small to see clearly
大家讲道理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