全局安装 npm 包时出错,npm ERR!代码 ENOENT

问题描述

我正在尝试以全局方式安装 nodemonbrowserify,但我不能。它显示错误

npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\vignesh\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory,lstat 'C:\Users\vignesh\AppData\Roaming\npm'
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\vignesh\AppData\Local\npm-cache\_logs\2021-07-02T09_36_20_737Z-debug.log

但是我可以安装 devDependencies 并且我不能运行 browserify。请一些人帮忙

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)