Skip to content
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

Installing angular-cli latest issue #1209

Closed
HackPoint opened this issue Jun 26, 2016 · 7 comments · Fixed by #1250
Closed

Installing angular-cli latest issue #1209

HackPoint opened this issue Jun 26, 2016 · 7 comments · Fixed by #1250

Comments

@HackPoint
Copy link

Please provide us with the following information:

  1. Mac OSX (El Capitan)
  1. Versions. Please run ng --version. If there's nothing outputted, please
    run in a Terminal:
    node --version
    `module.js:442
    throw err;
    ^

Error: Cannot find module 'rsvp'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object. (/Users/gena/.nvm/versions/node/v6.2.1/lib/node_modules/angular-cli/node_modules/leek/lib/leek.js:3:19)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
`

  1. Tryed to install the angular-cli latest version
  2. The log given by the failure. Normally this include a stack trace and some
    more information.
    118045 verbose stack Error: ENOENT: no such file or directory, rename '/Users/gena/.nvm/versions/node/v6.2.1/lib/node_modules/.staging/abbrev-2f33b7c6' -> '/Users/gena/.nvm/versions/node/v6.2.1/lib/node_modules/angular-cli/node_modules/ember-cli/node_modules/npm/node_modules/abbrev' 118045 verbose stack at destStatted (/Users/gena/.nvm/versions/node/v6.2.1/lib/node_modules/npm/lib/install/action/finalize.js:25:7) 118045 verbose stack at FSReqWrap.oncomplete (fs.js:117:15) 118045 verbose stack 118045 verbose stack Error: ENOENT: no such file or directory, rename '/Users/gena/.nvm/versions/node/v6.2.1/lib/node_modules/.staging/abbrev-2f33b7c6' -> '/Users/gena/.nvm/versions/node/v6.2.1/lib/node_modules/angular-cli/node_modules/ember-cli/node_modules/npm/node_modules/abbrev' 118045 verbose stack at Error (native) 118046 verbose cwd /Users/gena/ironbuzz/private/super-fitness 118047 error Darwin 15.5.0 118048 error argv "/Users/gena/.nvm/versions/node/v6.2.1/bin/node" "/Users/gena/.nvm/versions/node/v6.2.1/bin/npm" "i" "-g" "angular-cli" 118049 error node v6.2.1 118050 error npm v3.9.3 118051 error path /Users/gena/.nvm/versions/node/v6.2.1/lib/node_modules/.staging/abbrev-2f33b7c6 118052 error code ENOENT 118053 error errno -2 118054 error syscall rename 118055 error enoent ENOENT: no such file or directory, rename '/Users/gena/.nvm/versions/node/v6.2.1/lib/node_modules/.staging/abbrev-2f33b7c6' -> '/Users/gena/.nvm/versions/node/v6.2.1/lib/node_modules/angular-cli/node_modules/ember-cli/node_modules/npm/node_modules/abbrev' 118056 error enoent ENOENT: no such file or directory, rename '/Users/gena/.nvm/versions/node/v6.2.1/lib/node_modules/.staging/abbrev-2f33b7c6' -> '/Users/gena/.nvm/versions/node/v6.2.1/lib/node_modules/angular-cli/node_modules/ember-cli/node_modules/npm/node_modules/abbrev' 118056 error enoent This is most likely not a problem with npm itself 118056 error enoent and is related to npm not being able to find a file. 118057 verbose exit [ -2, true ]

Thanks! We'll be in touch soon.

@Foxandxss
Copy link
Member

$ npm remove -g angular-cli
$ npm cache clean
$ npm install -g angular-cli

That should fix it.

@Splaktar
Copy link
Member

Splaktar commented Jun 26, 2016

Strange that with beta.8 installed, I'm still seeing this output:

$ sudo npm install angular-cli@latest -g
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/opt/local/bin/ng -> /opt/local/lib/node_modules/angular-cli/bin/ng
/opt/local/lib
`-- [email protected] 

$ ng --version
angular-cli: 1.0.0-beta.6
node: 4.4.3
os: darwin x64

Oh that's because I was inside of an app that had beta.6 installed.

Doing a ng new beta8App --mobile gave me an error:

The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements!
Error: The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements!
    at /opt/local/lib/node_modules/angular-cli/node_modules/angular-cli/node_modules/npm/lib/install.js:125:32
    at /opt/local/lib/node_modules/angular-cli/node_modules/angular-cli/node_modules/npm/lib/install.js:268:7
    at /opt/local/lib/node_modules/angular-cli/node_modules/angular-cli/node_modules/npm/node_modules/read-installed/read-installed.js:142:5
    at /opt/local/lib/node_modules/angular-cli/node_modules/angular-cli/node_modules/npm/node_modules/read-installed/read-installed.js:263:14
    at cb (/opt/local/lib/node_modules/angular-cli/node_modules/angular-cli/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /opt/local/lib/node_modules/angular-cli/node_modules/angular-cli/node_modules/npm/node_modules/read-installed/read-installed.js:263:14
    at cb (/opt/local/lib/node_modules/angular-cli/node_modules/angular-cli/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /opt/local/lib/node_modules/angular-cli/node_modules/angular-cli/node_modules/npm/node_modules/read-installed/read-installed.js:263:14
    at cb (/opt/local/lib/node_modules/angular-cli/node_modules/angular-cli/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /opt/local/lib/node_modules/angular-cli/node_modules/angular-cli/node_modules/npm/node_modules/read-installed/read-installed.js:263:14

Then cd'ing into the new app and doing ng --version gave me:

$ ng --version
module.js:327
    throw err;
    ^

Error: Cannot find module 'exists-sync'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/splaktar/Git/tf/beta8App/node_modules/angular-cli/node_modules/ember-cli/lib/models/project.js:11:26)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)

To fix this, I had to do another npm i in that new ng CLI app after cd'ing into it, then I finally got:

$ ng --version
angular-cli: 1.0.0-beta.8
node: 4.4.3
os: darwin x64

@Splaktar
Copy link
Member

This seems to be the same issue as #1186.

filipesilva added a commit to filipesilva/angular-cli that referenced this issue Jun 30, 2016
The npm task from our current ember-cli install uses npm 2.x.x, which was causing issues with some of the dependencies.

This PR copies over all files needed for the npm-install task but uses a local 3.10.2 npm version instead.

Fix angular#1186
Fix angular#1191
Fix angular#1201
Fix angular#1209
Fix angular#1207
Fix angular#1248
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Jun 30, 2016
The npm task from our current ember-cli install uses npm 2.x.x, which was causing issues with some of the dependencies.

This PR copies over all files needed for the npm-install task but uses a local 3.10.2 npm version instead.

Fix angular#1186 (main issue)
Fix angular#1191
Fix angular#1201
Fix angular#1209
Fix angular#1207
Fix angular#1248
filipesilva added a commit that referenced this issue Jun 30, 2016
The npm task from our current ember-cli install uses npm 2.x.x, which was causing issues with some of the dependencies.

This PR copies over all files needed for the npm-install task but uses a local 3.10.2 npm version instead.

Fix #1186 (main issue)
Fix #1191
Fix #1201
Fix #1209
Fix #1207
Fix #1248
@Sangeethaself
Copy link

while installing @tangular/cli

getting this following error

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

@M4H3NDR4N
Copy link

while installing angular

got this error,

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! stack: 'Error: EACCES: permission denied, access '/usr/local/lib/node_modules'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mac/.npm/_logs/2018-04-27T12_17_11_520Z-debug.log

@anupammaurya
Copy link

anupammaurya commented Jun 12, 2018

Uninstall node
Delete Angular folder from Appdata>>Roaming>>...

  • restart
  • nstall node from the stable version
  • npm i
  • npm -g update npm
  • npm uninstall -g @angular/cli angular/cli
  • npm cache clean
  • npm install -g @angular/cli

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

Successfully merging a pull request may close this issue.

6 participants