node.js - npm 错误!错误号 ENOENT
问题描述
当我搜索 npm 版本时,出现此错误,我不知道如何解决
C:\Users\User>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\User\AppData\Roaming\npm-cache\_logs\2021-01-29T12_43_37_881Z-debug.log
6.14.11
解决方案
推荐阅读
- caching - 使用 URL 查询参数来版本缓存响应
- python - 熊猫列转换
- angular - 错误:尝试比较“[object Object]”时出错。只允许使用数组和可迭代对象
- c# - 是否可以在 SharePoint 网站中找到文件而不指定包含该文件的驱动器?
- vba - 圆角应该在 Powerpoint VBA 脚本中保持不变
- tableau-api - 在 Qlikview 中实现 Tableau LOD
- jmeter - 发送请求时如何停止编码我的变量?
- python - 按数据透视组
- javascript - 如何使用传递参数的加号和减号按钮创建一个计数器,以便我没有两个使用两个单独的函数?
- macos - Xamarin 的 MAC 演示未从 Launch Pad 启动