npm 安装文件 运行报错 %1 is not a valid Win32 application

安装了那个模板出了错报这样的错误 “%1 is not a valid Win32 application”

你就除那个模板新安装。

如下例: 

运行 

npm install -g @angular/cli

报以下错误

Binary has a problem: Error: %1 is not a valid Win32 application.
\\?\C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\node-sass\vendor\win32-x64-48\binding.node
    at Error (native)
    at Object.Module._extensions..node (module.js:597:18)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at module.exports (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\node-sass\lib\binding.js:19:10)
    at Object. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (module.js:570:32)
Building the binary locally

解决方法

npm rm -g @angular/cli  

npm install -g @angular/cli

转载于:https://www.cnblogs.com/flxy-1028/p/7195114.html

你可能感兴趣的:(javascript,java,python,ViewUI)