Skip to content

Instalation error #6821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
roqueorts opened this issue Jun 28, 2017 · 7 comments
Closed

Instalation error #6821

roqueorts opened this issue Jun 28, 2017 · 7 comments

Comments

@roqueorts
Copy link

roqueorts commented Jun 28, 2017

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.

@rageshvr
Copy link

rageshvr commented Jun 28, 2017

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

@roqueorts
Copy link
Author

roqueorts commented Jun 28, 2017 via email

@rageshvr
Copy link

rageshvr commented Jun 28, 2017

Are you getting any error related to node-gyp? This is most probably something that is mentioned here #1560 (comment)

Also, can you please get the complete log from the console?

@filipesilva

@roqueorts
Copy link
Author

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]

@rageshvr
Copy link

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

@filipesilva
Copy link
Contributor

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!

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants