Instalation error
I get an error installing angular-cli
Versions.
node --version v4.2.3 npm --version 3.8.8 Windows 7
Repro steps.
$ npm install -g angular-cli
npm WARN deprecated [email protected]: angular-cli has been renamed to @angular/cli. Please update your dependencies.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\Users\rortscam\AppData\Roaming\npm\ng -> C:\Users\rortscam\AppData\Roaming\npm\node_modules\angular-cli\bin\ng
C:\Users\rortscam\AppData\Roaming\npm
-- [email protected]
-- UNMET PEER DEPENDENCY rxjs@^5.0.1
npm WARN optional Skipping failed optional dependency /angular-cli/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected] npm WARN @angular/[email protected] requires a peer of rxjs@^5.0.1 but none was installed.
Both the CLI and generated project have dependencies that require Node 6.9.0 or higher, together with NPM 3 or higher, please update your node and npm.
https://github.com/angular/angular-cli#prerequisites
Use below command to install CLI
npm install -g @angular/cli
Hi ragueshvr, Thanks for reply. Getting similar error with node 6.11.0 and npm 3.8.8
$ npm install -g @angular/cli C:\Users\rortscam\AppData\Roaming\npm\ng -> C:\Users\rortscam\AppData\Roaming\npm\node_modules@angular\cli\bin\ng C:\Users\rortscam\AppData\Roaming\npm `-- @angular/[email protected]
npm WARN optional Skipping failed optional dependency /@angular/cli/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected]
Are you getting any error related to node-gyp? This is most probably something that is mentioned here https://github.com/angular/angular-cli/issues/1560#issuecomment-240913794
Also, can you please get the complete log from the console?
@filipesilva
That's the complete log: C:\Users\rortscam\AppData\Roaming\npm\ng -> C:\Users\rortscam\AppData\Roaming\npm\node_modules@angular\cli\bin\ng C:\Users\rortscam\AppData\Roaming\npm `-- @angular/[email protected]
npm WARN optional Skipping failed optional dependency /@angular/cli/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected]
This seems to be an optional dependency warning only, See if you have angular-cli installed with below command:
ng -v
--no-optional flag with npm install, should get rid of those though.
npm install --no-optional @angular/cli
Yeah that is just a warning, and is fine. It's a dependency that's only really needed for OSX systems. Thanks to @rageshvr for helping out!
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.