Skip to content

Installing angular-cli latest issue #1209

Closed

Description

@HackPoint

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.

Activity

  1. Foxandxss commented on Jun 26, 2016

    @Foxandxss
    Member
    $ npm remove -g angular-cli
    $ npm cache clean
    $ npm install -g angular-cli
    

    That should fix it.

  2. Splaktar commented on Jun 26, 2016

    @Splaktar
    Contributor

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

    $ sudo npm install angular-cli@latest -g
    npm WARN deprecated minimatch@2.0.10: 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
    `-- angular-cli@1.0.0-beta.8 
    
    $ 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/core@2.0.0-rc.3 does not satisfy its siblings' peerDependencies requirements!
    Error: The package @angular/core@2.0.0-rc.3 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
    
  3. Splaktar commented on Jun 26, 2016

    @Splaktar
    Contributor

    This seems to be the same issue as #1186.

  4. added 2 commits that reference this issue on Jun 30, 2016
    afb7391
    f5bf475
  5. added a commit that references this issue on Jun 30, 2016
    6f0ebfb
  6. Sangeethaself commented on Dec 24, 2017

    @Sangeethaself

    while installing @tangular/cli

    getting this following error

    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

  7. M4H3NDR4N commented on Apr 27, 2018

    @M4H3NDR4N

    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

  8. anupammaurya commented on Jun 12, 2018

    @anupammaurya

    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
  9. angular-automatic-lock-bot commented on Sep 8, 2019

    @angular-automatic-lock-bot

    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.

  10. locked and limited conversation to collaborators on Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions