nodejs Error: ENOENT, stat 'C:\Users\T440P\AppData\Roaming\npm'

时间:2022-12-11 20:52:30

在执行npm 命令时候,例如npm install 出现了错误

nodejs Error: ENOENT, stat ‘C:\Users\T440P\AppData\Roaming\npm‘

解决办法:

手动在C:\Users\T440P\AppData\Roaming\npm 建立 npm 文件夹,如下所示:

nodejs Error: ENOENT, stat 'C:\Users\T440P\AppData\Roaming\npm'