question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[beta.31] npm WARN at installation in global

See original GitHub issue

Please provide us with the following information:

When I run npm -g i @angular/cli, warnings are shown as the below:

npm WARN @ngtools/webpack@1.2.9 requires a peer of @angular/compiler@^2.3.1 || >=4.0.0-beta <5.0.0 but none was installed.
npm WARN @ngtools/webpack@1.2.9 requires a peer of @angular/compiler-cli@^2.3.1 || >=4.0.0-beta <5.0.0 but none was installed.
npm WARN @ngtools/webpack@1.2.9 requires a peer of @angular/core@^2.3.1 || >=4.0.0-beta <5.0.0 but none was installed.
npm WARN @ngtools/webpack@1.2.9 requires a peer of @angular/tsc-wrapped@^0.5.0 but none was installed.

OS?

Mac OS El Capitan

Versions.

Please run ng --version. If there’s nothing outputted, please run in a Terminal: node --version and paste the result here:

@angular/cli: 1.0.0-beta.31 node: 6.9.5 os: darwin x64

Repro steps.

Was this an app that wasn’t created using the CLI? What change did you do on your code? etc.

$ npm -g uni @angular/cli
$ npm -g i @angular/cli

The log given by the failure.

Normally this include a stack trace and some more information.

Mention any other details that might be useful.


Thanks! We’ll be in touch soon.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:11
  • Comments:12

github_iconTop GitHub Comments

5reactions
AlainD-commented, Feb 10, 2017

Again, as a workaround, installing all these modules globally after the update of @angular/cli makes everything work correctly for me:

npm install -g @angular/cli@latest
npm install -g @angular/compiler@^2.3.1 @angular/compiler-cli@^2.3.1 @angular/core@^2.3.1 @angular/tsc-wrapped@^0.5.0 @ngtools/webpack
npm install -g typescript@^2.0.2 zone.js@^0.7.2
1reaction
AlainD-commented, Feb 15, 2017

@nam4dev I read here https://github.com/angular/angular-cli/issues/2389#issuecomment-278913860 that modifying those settings are not advised, and could cause memory issues instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm WARN ... requires a peer of ... but none is installed. You ...
npm WARN @angular/cdk@2.0.0-beta.10 requires a peer of @angular/core@^4.3.0 but none is installed. You must install peer dependencies yourself.
Read more >
@angular/cli - npm
3rd Party Library Installation · First, create a typings.d.ts file in your src/ folder. This file will be automatically included as global type...
Read more >
vue - npm
vue.global.js is the "full" build that includes both the compiler and ... This means you can install/import these deps individually without ...
Read more >
npm-check-updates
Run npm install to update your installed packages and package-lock.json. clean output; sensible defaults; lots of options for custom ...
Read more >
angular/flex-layout - npm
Latest version: 14.0.0-beta.41, last published: 2 months ago. Start using @angular/flex-layout in ... Install. npm i @angular/flex-layout ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found