Node.js/Windows error: ENOENT, stat 'C:\Users\RT\AppData\Roaming\npm'
I have Windows 7 32-bit. I installed the latest Node.js 32 bit. When I try to run the command npm install jquery
, I receive the error:
Error: ENOENT, stat 'C:UsersRTAppDataRoamingnpm
How does one resolve it?
Manually creating a folder named 'npm' in the displayed path fixed the problem.
More information can be found on Troubleshooting page
I ran into the same problem while installing a package via npm.
After creating the npm
folder manually in C:UsersUserNameAppDataRoaming
that particular error was gone, but it gave similar multiple errors as it tried to create additional directories in the npm
folder and failed. The issue was resolved after running the command prompt as an administrator .
This can also be fixed by installing a node package manually.
npm install npm -g
The process of doing that will setup all the required directories.
链接地址: http://www.djcxy.com/p/61736.html上一篇: 用于文本框焦点的Windows全局钩子
下一篇: Node.js / Windows错误:ENOENT,stat'C:\ Users \ RT \ AppData \ Roaming \ npm'