问题:
C:\Users\Administrator>npm -v
npm ERR! path C:\Program Files\nodejs\node.exe
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\Program Files\nodejs\node.exe
npm ERR! enoent spawn C:\Program Files\nodejs\node.exe ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Callback called more than once.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2018-11-28T08_02_36_124Z-debug.log
6.4.1
输入npm任何命令都会报错
C:\Program Files\nodejs\node.exe文件存在
已经重装nodejs过N次!
回答1:
完全卸载nodejs后,改用低版本nodejs 7.10.1解决
回答2:
看看这个文件里这么说:C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2018-11-28T08_02_36_124Z-debug.log
标签: