使用PowerShell的Windows 10系统的升级 Node.js, NPM 首先,确保您可以从PowerShell运行以下命令来在系统上执行脚本。要以管理员身份运行PowerShell,依次单击开始、搜索PowerShell、右键单击PowerShell,然后选择以管理员身份运行。 Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force 然后,要安装和使用这个升级工具,运行(也可以从PowerShell或cmd.exe): npm install --global --production npm-windows-upgrade npm-windows-upgrade $ npm uninstall -g vue-cli $ npm install -g @vue/cli
沒有留言:
張貼留言