【内推字节】欢迎简历chengxinsong@bytedance.com
npm报错:npm ERR! enoent This is related to npm not being able to find a file.
发布于 作者 suning 1096 次浏览 来自 分享

npm i 报错,因为最近把npm安装到最新版本,然后其他项目就出现了问题

G:\02Github-4\saucxs-resume\resume>npm i
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/eligrey/FileSaver.js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
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\pc\AppData\Roaming\npm-cache\_logs\2019-03-30T07_54_28_277Z-debug.log


解决办法:删除原来的node-modules,然后重新开一个命令行,再次执行就好了。



发布评论
微信群
saucxs聊天机器人
saucxs
hi ,欢迎来到sau交流学习社区,欢迎与我聊天,问我问题哦!