Skip to content

npm peer invalid after ng new && npm shrinkwrap #2353

Closed

Description

@JohannesRudolph

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    OS X El Apitan
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
iDevBook01:meshstack-ui jr$ ng --version
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.15
node: 6.3.0
os: darwin x64
  1. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.

ng new demo then attempt to e.g. shrinkwrap your project via npm shrinkwrap

  1. The log given by the failure. Normally this include a stack trace and some
    more information.
iDevBook01:demo jr$ npm shrinkwrap
npm WARN shrinkwrap Excluding devDependency: angular-cli@1.0.0-beta.15 { '@angular/common': '2.0.0',
npm WARN shrinkwrap   '@angular/compiler': '2.0.0',
npm WARN shrinkwrap   '@angular/core': '2.0.0',
npm WARN shrinkwrap   '@angular/forms': '2.0.0',
npm WARN shrinkwrap   '@angular/http': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser-dynamic': '2.0.0',
npm WARN shrinkwrap   '@angular/router': '3.0.0',
npm WARN shrinkwrap   'core-js': '^2.4.1',
npm WARN shrinkwrap   rxjs: '5.0.0-beta.12',
npm WARN shrinkwrap   'ts-helpers': '^1.1.1',
npm WARN shrinkwrap   'zone.js': '^0.6.23' }
npm WARN shrinkwrap Excluding devDependency: codelyzer@0.0.28 { '@angular/common': '2.0.0',
npm WARN shrinkwrap   '@angular/compiler': '2.0.0',
npm WARN shrinkwrap   '@angular/core': '2.0.0',
npm WARN shrinkwrap   '@angular/forms': '2.0.0',
npm WARN shrinkwrap   '@angular/http': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser-dynamic': '2.0.0',
npm WARN shrinkwrap   '@angular/router': '3.0.0',
npm WARN shrinkwrap   'core-js': '^2.4.1',
npm WARN shrinkwrap   rxjs: '5.0.0-beta.12',
npm WARN shrinkwrap   'ts-helpers': '^1.1.1',
npm WARN shrinkwrap   'zone.js': '^0.6.23' }
npm WARN shrinkwrap Excluding devDependency: jasmine-spec-reporter@2.5.0 { '@angular/common': '2.0.0',
npm WARN shrinkwrap   '@angular/compiler': '2.0.0',
npm WARN shrinkwrap   '@angular/core': '2.0.0',
npm WARN shrinkwrap   '@angular/forms': '2.0.0',
npm WARN shrinkwrap   '@angular/http': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser-dynamic': '2.0.0',
npm WARN shrinkwrap   '@angular/router': '3.0.0',
npm WARN shrinkwrap   'core-js': '^2.4.1',
npm WARN shrinkwrap   rxjs: '5.0.0-beta.12',
npm WARN shrinkwrap   'ts-helpers': '^1.1.1',
npm WARN shrinkwrap   'zone.js': '^0.6.23' }
npm WARN shrinkwrap Excluding devDependency: karma@1.2.0 { '@angular/common': '2.0.0',
npm WARN shrinkwrap   '@angular/compiler': '2.0.0',
npm WARN shrinkwrap   '@angular/core': '2.0.0',
npm WARN shrinkwrap   '@angular/forms': '2.0.0',
npm WARN shrinkwrap   '@angular/http': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser-dynamic': '2.0.0',
npm WARN shrinkwrap   '@angular/router': '3.0.0',
npm WARN shrinkwrap   'core-js': '^2.4.1',
npm WARN shrinkwrap   rxjs: '5.0.0-beta.12',
npm WARN shrinkwrap   'ts-helpers': '^1.1.1',
npm WARN shrinkwrap   'zone.js': '^0.6.23' }
npm WARN shrinkwrap Excluding devDependency: karma-chrome-launcher@2.0.0 { '@angular/common': '2.0.0',
npm WARN shrinkwrap   '@angular/compiler': '2.0.0',
npm WARN shrinkwrap   '@angular/core': '2.0.0',
npm WARN shrinkwrap   '@angular/forms': '2.0.0',
npm WARN shrinkwrap   '@angular/http': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser-dynamic': '2.0.0',
npm WARN shrinkwrap   '@angular/router': '3.0.0',
npm WARN shrinkwrap   'core-js': '^2.4.1',
npm WARN shrinkwrap   rxjs: '5.0.0-beta.12',
npm WARN shrinkwrap   'ts-helpers': '^1.1.1',
npm WARN shrinkwrap   'zone.js': '^0.6.23' }
npm WARN shrinkwrap Excluding devDependency: karma-cli@1.0.1 { '@angular/common': '2.0.0',
npm WARN shrinkwrap   '@angular/compiler': '2.0.0',
npm WARN shrinkwrap   '@angular/core': '2.0.0',
npm WARN shrinkwrap   '@angular/forms': '2.0.0',
npm WARN shrinkwrap   '@angular/http': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser-dynamic': '2.0.0',
npm WARN shrinkwrap   '@angular/router': '3.0.0',
npm WARN shrinkwrap   'core-js': '^2.4.1',
npm WARN shrinkwrap   rxjs: '5.0.0-beta.12',
npm WARN shrinkwrap   'ts-helpers': '^1.1.1',
npm WARN shrinkwrap   'zone.js': '^0.6.23' }
npm WARN shrinkwrap Excluding devDependency: karma-jasmine@1.0.2 { '@angular/common': '2.0.0',
npm WARN shrinkwrap   '@angular/compiler': '2.0.0',
npm WARN shrinkwrap   '@angular/core': '2.0.0',
npm WARN shrinkwrap   '@angular/forms': '2.0.0',
npm WARN shrinkwrap   '@angular/http': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser-dynamic': '2.0.0',
npm WARN shrinkwrap   '@angular/router': '3.0.0',
npm WARN shrinkwrap   'core-js': '^2.4.1',
npm WARN shrinkwrap   rxjs: '5.0.0-beta.12',
npm WARN shrinkwrap   'ts-helpers': '^1.1.1',
npm WARN shrinkwrap   'zone.js': '^0.6.23' }
npm WARN shrinkwrap Excluding devDependency: karma-remap-istanbul@0.2.1 { '@angular/common': '2.0.0',
npm WARN shrinkwrap   '@angular/compiler': '2.0.0',
npm WARN shrinkwrap   '@angular/core': '2.0.0',
npm WARN shrinkwrap   '@angular/forms': '2.0.0',
npm WARN shrinkwrap   '@angular/http': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser-dynamic': '2.0.0',
npm WARN shrinkwrap   '@angular/router': '3.0.0',
npm WARN shrinkwrap   'core-js': '^2.4.1',
npm WARN shrinkwrap   rxjs: '5.0.0-beta.12',
npm WARN shrinkwrap   'ts-helpers': '^1.1.1',
npm WARN shrinkwrap   'zone.js': '^0.6.23' }
npm WARN shrinkwrap Excluding devDependency: protractor@4.0.5 { '@angular/common': '2.0.0',
npm WARN shrinkwrap   '@angular/compiler': '2.0.0',
npm WARN shrinkwrap   '@angular/core': '2.0.0',
npm WARN shrinkwrap   '@angular/forms': '2.0.0',
npm WARN shrinkwrap   '@angular/http': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser-dynamic': '2.0.0',
npm WARN shrinkwrap   '@angular/router': '3.0.0',
npm WARN shrinkwrap   'core-js': '^2.4.1',
npm WARN shrinkwrap   rxjs: '5.0.0-beta.12',
npm WARN shrinkwrap   'ts-helpers': '^1.1.1',
npm WARN shrinkwrap   'zone.js': '^0.6.23' }
npm WARN shrinkwrap Excluding devDependency: ts-node@1.2.1 { '@angular/common': '2.0.0',
npm WARN shrinkwrap   '@angular/compiler': '2.0.0',
npm WARN shrinkwrap   '@angular/core': '2.0.0',
npm WARN shrinkwrap   '@angular/forms': '2.0.0',
npm WARN shrinkwrap   '@angular/http': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser-dynamic': '2.0.0',
npm WARN shrinkwrap   '@angular/router': '3.0.0',
npm WARN shrinkwrap   'core-js': '^2.4.1',
npm WARN shrinkwrap   rxjs: '5.0.0-beta.12',
npm WARN shrinkwrap   'ts-helpers': '^1.1.1',
npm WARN shrinkwrap   'zone.js': '^0.6.23' }
npm WARN shrinkwrap Excluding devDependency: tslint@3.13.0 { '@angular/common': '2.0.0',
npm WARN shrinkwrap   '@angular/compiler': '2.0.0',
npm WARN shrinkwrap   '@angular/core': '2.0.0',
npm WARN shrinkwrap   '@angular/forms': '2.0.0',
npm WARN shrinkwrap   '@angular/http': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser': '2.0.0',
npm WARN shrinkwrap   '@angular/platform-browser-dynamic': '2.0.0',
npm WARN shrinkwrap   '@angular/router': '3.0.0',
npm WARN shrinkwrap   'core-js': '^2.4.1',
npm WARN shrinkwrap   rxjs: '5.0.0-beta.12',
npm WARN shrinkwrap   'ts-helpers': '^1.1.1',
npm WARN shrinkwrap   'zone.js': '^0.6.23' }
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "shrinkwrap"
npm ERR! node v6.3.0
npm ERR! npm  v3.10.3

npm ERR! Problems were encountered
npm ERR! Please correct and try again.
npm ERR! peer invalid: @angular/compiler@2.0.1, required by @angular/compiler-cli@0.6.3
npm ERR! peer invalid: @angular/core@2.0.1, required by @angular/compiler-cli@0.6.3
npm ERR! peer invalid: @angular/core@2.0.1, required by @angular/platform-server@2.0.1
npm ERR! peer invalid: @angular/common@2.0.1, required by @angular/platform-server@2.0.1
npm ERR! peer invalid: @angular/compiler@2.0.1, required by @angular/platform-server@2.0.1
npm ERR! peer invalid: @angular/platform-browser@2.0.1, required by @angular/platform-server@2.0.1
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jr/dev/tmp/demo/npm-debug.log

  1. Mention any other details that might be useful.
    Angular-CLI could update the default angular version used to 2.0.1 (haven't found a corresponding issue yet)

    Thanks! We'll be in touch soon.

Activity

  1. thomas-mindruptive commented on Sep 27, 2016

    @thomas-mindruptive

    Facing the same problem:

    angular-cli: 1.0.0-beta.15
    node: 6.5.0
    os: win32 x64
    npm 3.10.8
    

    Create a new ng2 app:

    • ng new testapp
    • cd testapp
    • npm list => npm ERR! peer dep missing: @angular/common@2.0.1, required by @angular/platform-server@2.0.1

    Install an additional package, e.g. express:

    npm install express
    causes:

    +-- UNMET PEER DEPENDENCY @angular/common@2.0.0
    +-- UNMET PEER DEPENDENCY @angular/compiler@2.0.0
    +-- UNMET PEER DEPENDENCY @angular/core@2.0.0
    +-- UNMET PEER DEPENDENCY @angular/platform-browser@2.0.0
    `-- angular-cli@1.0.0-beta.15
      `-- ember-cli@2.5.0
        `-- express@4.14.0
    
  2. changed the title [-]npm peer invalid after ng new[/-] [+]npm peer invalid after ng new && npm shrinkwrap[/+] on Oct 6, 2016
  3. filipesilva commented on Oct 6, 2016

    @filipesilva
    Contributor

    Fixed by #2387

  4. aegyed91 commented on Dec 31, 2016

    @aegyed91

    i got an npm script like this: "lock": "npm prune --production; npm shrinkwrap; npm i; npm link angular-cli"

    this will delete all devDependencies, do shrinkwrap, then reinstall all devDependencies. This way shrinkwrap wont break on a devDependency

    note, if u name the npm script shrinkwrap it will do an infinite loop :P

  5. angular-automatic-lock-bot commented on Sep 6, 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.

  6. locked and limited conversation to collaborators on Sep 6, 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