angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Instalation error

Open roqueorts opened this issue 9 years ago • 7 comments

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.

roqueorts avatar Jun 28 '17 08:06 roqueorts

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

rageshvr avatar Jun 28 '17 10:06 rageshvr

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]

roqueorts avatar Jun 28 '17 11:06 roqueorts

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

rageshvr avatar Jun 28 '17 17:06 rageshvr

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]

roqueorts avatar Jun 29 '17 07:06 roqueorts

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

rageshvr avatar Jun 29 '17 07:06 rageshvr

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!

filipesilva avatar Jun 29 '17 13:06 filipesilva

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.