Skip to content

Error in installation . #1684

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
goriunov opened this issue Aug 13, 2016 · 16 comments
Closed

Error in installation . #1684

goriunov opened this issue Aug 13, 2016 · 16 comments

Comments

@goriunov
Copy link

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    Mac OSX El Capitan

  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
    node v4.4.7
    angular-cli 1.0.0-beta.11-webpack.2

  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
    Nothing

  4. The log given by the failure. Normally this include a stack trace and some
    more information.
    Can not install last
    233632 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:263:14
    233633 verbose cwd /Users/goriunov
    233634 error Darwin 15.6.0
    233635 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "[email protected]"
    233636 error node v4.4.7
    233637 error npm v2.15.8
    233638 error code EPEERINVALID
    233639 error peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
    233639 error peerinvalid Peer @angular/[email protected] wants typescript@^1.9.0-dev
    233639 error peerinvalid Peer [email protected] wants typescript@>=1.8.0 || >=1.9.0-dev
    233639 error peerinvalid Peer [email protected] wants typescript@>=1.7.3
    233640 verbose exit [ 1, true ]

  5. Mention any other details that might be useful.
    I just installed new OS and installed node after i run installation of Angular CLI and i could not do it


    Thanks! We'll be in touch soon.

@jasedwards
Copy link

same issue here. the little info I found on errors like this said you could ignore them but that does not seem to be correct as npm install stops at that point. when I ran ng new it immediately errored out stating could not find portfinder and am unable to run npm install on angular-cli as I get the error mentioned in the original post.

@davinkevin
Copy link
Contributor

Same problem solved by using NPM3 for me

@quzaq
Copy link

quzaq commented Aug 18, 2016

I had the same problem trying to upgrade from angular-cli: 1.0.0-beta.10 to angular-cli@webpack

My environment: node v4.5.0, npm 2.15.9, Ubuntu 14.04.

Resolved when upgraded to node v6.4.0, npm 3.10.3.

After successful installation I've seen only following text in red:
├── UNMET PEER DEPENDENCY [email protected]

So loosely related to #1737 and #1046.

@amellnik
Copy link

@davinkevin's method worked for me -- I used the npm3 package and it installed as admin under Windows x64.

@filipesilva
Copy link
Contributor

The problem is that NPM3 is needed, yes. It's not currently mentioned on the readme but #1748 adds that.

@akashgill1687
Copy link

how to use npm3 ?
could you please provide some steps ?

@amellnik
Copy link

@akashgill1687 npm install -g npm3 and then use npm3 in place of npm to install or just update npm to the latest version.

@akashgill1687
Copy link

cool it worked . i updated my npm . now can i upgrade my new project created with angular cli to to rlc5 ? and use rlc5 features ? if yes could you please jot down some steps for that please ? Thanks a lot

@akashgill1687
Copy link

i would like to add rlc5 features like aot ?

@filipesilva
Copy link
Contributor

We don't currently support AOT but are working to get that into the CLI. To update NPM, see http://stackoverflow.com/a/6237400/2116927

@akashgill1687
Copy link

alright but can i use this compiler with cli@webpack : https://github.com/angular/angular/tree/master/modules/%40angular/compiler-cli

@akashgill1687
Copy link

i ended up this issue :
ERROR in [default] sampleApp/node_modules/@angular/core/src/facade/lang.d.ts:51:25
Cannot find name 'DateConstructor'.

ERROR in [default] sampleApp/node_modules/@angular/core/src/facade/lang.d.ts:56:51
Cannot find name 'String'.
sampleApp/node_modules/@angular/core/src/facade/lang.d.ts:59:54
Cannot find name 'Object'.

ERROR in [default] sampleApp/node_modules/@angular/core/src/facade/lang.d.ts:63:49
Cannot find name 'Date'.

ERROR in [default] sampleApp/node_modules/@angular/core/src/facade/lang.d.ts:67:58
Cannot find name 'Map'.

ERROR in [default] sampleApp/node_modules/@angular/core/src/facade/lang.d.ts:72:36
Cannot find name 'RegExp'.

Angular 2 rlc5 with angular-cli errors while ng serve

@filipesilva
Copy link
Contributor

We don't currently support it so I don't think that'll work.

@davidrensh
Copy link

install node v6.4.0 manually from https://nodejs.org/en/ @19390917 is right.

@davidrensh
Copy link

It shows cli beta.10 not 11-webpack.2
image

@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 6, 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

8 participants