npm - 当前的 npm 安装位置需要管理员权限
问题描述
我正在尝试cordova
在 Visual Studio 2015 中构建我的应用程序,但出现此错误
The current npm install location C:\Users\{users}\AppData\Roaming\npm requires admin privileges to install a package. To resolve the issue, either change the ACL for C:\Users\{users}\AppData\Roaming\npm or change the install path by running 'npm config set prefix %AppData%\npm' and restarting Visual Studio in order to build without being an admin.
它发生在使用 Windows 10 时
解决方案
推荐阅读
- javascript - TYPO3 自动清理 Typo3temp/compressor 中压缩的 JavaScript 和 CSS 文件
- docker - Heroku Docker Container - 尝试运行应用程序时的非法指令
- ruby-on-rails - 让 Rails 触发更新 nginx 配置?
- android - Kotlin LocalBroadcastManager 在调用后无法在 UI 上显示值
- java - Java Swing GridBagLayout JTextField 添加错误消息后更改大小
- c# - 序列化集合的属性?
- javascript - 如何使用 JavaScript 在本地系统中记录远程提要
- javascript - 是否可以在 MVC 控制器返回中调用模式弹出窗口(javascript)
- java - Maven禁止循环包依赖
- matlab - 如何在 MATLAB 中向极性树状图添加标签?