NPM installation file run error%1 is not a valid WIN32 application

Source: Internet
Author: User

The template was installed with the wrong report error "%1 is not a valid WIN32 application"

You're going to install the template in addition to the new one.

The following example:

Run

NPM install-g @angular/CLI

Report the following error

Binary has a problem:error:%1  isNot a valid Win32 application.\\? \c:\users\administrator\appdata\roaming\npm\node_modules\ @angular \cli\node_modules\node-sass\vendor\ win32-x64- -\binding.node at Error (native) at Object.module._extensions. Node (module.js:597: -) at Module.load (module.js:487: +) at Trymoduleload (module.js:446: A) at Function.module._load (module.js:438:3) at Module.require (module.js:497: -) at require (Internal/module.js: -: +) at Module.exports (C:\Users\Administrator\AppData\Roaming\npm\node_modules\ @angular \cli\node_modules\node -sass\lib\binding.js: +:Ten) at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\ @angular \cli\node_modules\node-sass\ Lib\index.js: -: *) at Module._compile (module.js:570: +) Building the binary locally

Workaround

NPM rm-g @angular/CLI

NPM install-g @angular/CLI

NPM installation file run error%1 is not a valid WIN32 application

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.