我尝试使用错误
npm install --save font-awesome
但是npm
抛出错误
npm ERR! path C:\Users\a\Desktop\Code\faTest\node_modules\font-awesome
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\a\Desktop\Code\faTest\node_modules\font-awesome' -> 'C:\Users\a\Desktop\Code\faTest\node_modules\.font-awesome.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\a\AppData\Roaming\npm-cache\_logs\2017-11-25T16_52_23_476Z-debug.log
尝试安装字体真棒运行以下
npm cache clean --force
npm install -g npm
npm install
npm install --save font-awesome
,但我仍然以相同的错误结束。
运行Windows 10,NPM 5.5.1,节点7.9.0
任何人都得到了同样的问题?
节点在另一个虚拟桌面上运行。停止节点解决了问题。 –