使用“npm install font-awesome”时出错
Error using `npm install font-awesome`
我尝试使用
安装 Font Awesome
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\_logs17-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
有人遇到同样的问题吗?
检查其他应用程序是否在后台有节点 运行ning 的实例。如果是这样,请尝试终止它们,然后重试您的 npm 命令。
或 运行 node.js 作为管理员。
切换到 Yarn package manager (doing so took me less than an hour on my large project). Built by Facebook and Google to fix the issues 每个人都已经使用 npm 很长时间了。
我尝试使用
安装 Font Awesomenpm 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\_logs17-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
有人遇到同样的问题吗?
检查其他应用程序是否在后台有节点 运行ning 的实例。如果是这样,请尝试终止它们,然后重试您的 npm 命令。
或 运行 node.js 作为管理员。
切换到 Yarn package manager (doing so took me less than an hour on my large project). Built by Facebook and Google to fix the issues 每个人都已经使用 npm 很长时间了。