【发布时间】:2021-12-30 02:10:39
【问题描述】:
每当我尝试运行 npx 和 npm 命令时,它们总是返回此错误:
'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ENOENT
npm ERR! syscall spawn C:\Windows\system32\cmd.exe";c:#python34."
npm ERR! path C:\Users\user\Desktop\React-Apps
npm ERR! errno -4058
npm ERR! enoent spawn C:\Windows\system32\cmd.exe";c:#python34." 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\user\AppData\Local\npm-cache\_logs\2021-11-19T08_56_16_871Z-debug.log
请帮忙
【问题讨论】:
-
你能检查一下 npm npm -v 的版本并告诉我结果吗谢谢