node.js and npm for windows

不打扰是莪最后的温柔 提交于 2019-12-18 09:42:46

问题


I am trying to get node.js and npm working on a windows computer (It works perfectly fine for me on mac ox and ubuntu). The installation completed without any errors but when I try to install anything with npm I get the following error:

Example:

npm install express
Error: ENOENT, stat 'C:\Users\siva.sivakumaran\AppData\Roaming\npm'

Can someone help me out with this issue?


回答1:


I added the folder npm under AppData/Roaming and it worked for me.




回答2:


I was having the same issue and I solved it with:

npm cache clean

Best.



来源:https://stackoverflow.com/questions/25143432/node-js-and-npm-for-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!