首页 > 解决方案 > 当前的 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 时

标签: npmwindows-10visual-studio-cordova

解决方案


推荐阅读