muk*_*h51 5 javascript node.js windows-10 angular
我在Windows 10系统上遇到angular-cli的安装问题。错误与Python依赖关系和node-gyp有关。如下所示:
>execSync@1.0.2 install C:\Users\UserName\AppData\Roaming\npm\node_modules\angular-cli\node_modules\execSync
node install.js
[execsync v1.0.2] Attempting to compile native extensions.
{ Error: spawn node-gyp ENOENT
at exports._errnoException (util.js:1007:11)
Run Code Online (Sandbox Code Playgroud)
小智 5
卸载
npm uninstall -g angular-cli
npm uninstall --save-dev angular-cli
Run Code Online (Sandbox Code Playgroud)
更新全局包
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
27198 次 |
| 最近记录: |