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