马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
安装完node之后, 测试全局安装一个最常用的 express 模块举行测试 失败,但是用管理员权限打开cmd 安装就乐成。
报错如下:
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
关键字:管理员;
(我的题目似乎设置环境的时间 ① npm config set prefix “你的路径\node_global”
②npm config set cache “你的路径\node_cache”设置不收效: )
办理:
方法一:
1.自己设置的文件夹权限不敷
2.右键打开属性
3.编辑users
4.勾选完全控制
|