Please provide us with the following information:
- OS? Windows 7
- Versions. Please run
ng --version. If there's nothing outputted, please
run in a Terminal:
node --version
And paste the result here. v6.2.2- Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
Installed latest NodeJS 6. Installed typings globally. Then installed angular-cli globally.- The log given by the failure. Normally this include a stack trace and some
more information.
$ npm list -g --depth=0
C:\Users\Jonathan\AppData\Roaming\npm
+-- [email protected]
`-- [email protected]
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\assertion-error
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\deep-eql
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\doctrine
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\escope
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\espree
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\file-entry-cache
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\formatio
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modulesgrowl
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\ignore
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\is-resolvable
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\jade
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\lolex
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\optionator
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\pluralize
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\progress
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\require-uncached
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\table
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\text-table
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\to-iso-string
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\type-detect
npm ERR! extraneous: [email protected] C:\Users\Jonathan\AppData\Roaming\npm\node_modules\angular-cli\node_modules\util
Same here /\
It doesn't seem to prevent the use of angular-cli.
Same here.
On OSX Yosemite.
From a clean install of node & npm with homebrew:
Olivier@Central:~ (72) $ node -v
v6.3.0
Olivier@Central:~ (69) $ npm list -g -depth=0
/usr/local/lib
โโโ [email protected]
After running
npm install -g angular-cli
which works fine in spite of some WARNINGs
npm WARN deprecated [email protected]: This package has been discontinued in favor of lodash@^4.0.0.
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
then the following list command
npm list -g -depth=0
displays some worrying npm errors:
Olivier@Central:~ (71) $ npm list -g -depth=0
/usr/local/lib
โโโ [email protected]
โโโ [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/assertion-error
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-angular
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-atom
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-codemirror
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-core
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-ember
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-eslint
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-express
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-jquery
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-jscs
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-jshint
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/deep-eql
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/doctrine
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/escope
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/espree
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/file-entry-cache
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/formatio
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/growl
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/ignore
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/is-resolvable
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/jade
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/lolex
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/optionator
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/pluralize
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/progress
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/require-uncached
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/rewire
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/sigmund
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/table
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/text-table
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/to-iso-string
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/type-detect
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/util
What do these message mean ?
Anything to really worry about ?
Is is a version issue ?
Any indication welcome.
angular-cli seems to work but this is not enough to make me comfortable...
Does this still happen on more recent betas?
The error is displayed on beta-9 and beta-10 as well for me. Xubuntu 16.04, node 6.2.2, npm 3.10.1
This might be due to the use of npm shrinkwrap. @hansl do these errors seem familiar?
It still happens with more recent betas @filipesilva
Mac OS X:
$ sw_vers -productVersion
10.11.6
Node & npm:
$ node -v && npm -v
v6.3.1
3.10.5
Errors:
$ npm ls -g --depth=0
/usr/local/lib
โโโ [email protected]
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/assertion-error
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-angular
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-atom
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-codemirror
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-core
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-ember
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-eslint
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-express
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-jquery
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-jscs
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-jshint
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/deep-eql
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/doctrine
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/escope
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/espree
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/file-entry-cache
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/formatio
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/growl
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/ignore
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/is-resolvable
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/jade
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/lolex
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/optionator
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/pluralize
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/progress
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/require-uncached
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/rewire
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/sigmund
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/table
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/text-table
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/to-iso-string
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/type-detect
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/util
Probably npm justs informs you of using unneeded packages as mentioned here: http://lifeonubuntu.com/npm-problem-npm-err-extraneous/. npm shrinkwrap could potentially be the problem.
It would be great if you could manage to fix this.
ng -v
(node:21180) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
angular-cli: 1.0.0-beta.10
node: 6.3.1
os: darwin x64
The error occurred while npm -g list --depth=0:
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/assertion-error
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-angular
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-atom
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-codemirror
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-core
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-ember
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-eslint
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-express
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-jquery
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-jscs
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/conventional-changelog-jshint
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/deep-eql
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/doctrine
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/escope
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/espree
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/file-entry-cache
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/formatio
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/growl
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/ignore
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/is-resolvable
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/jade
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/lolex
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/optionator
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/pluralize
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/progress
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/require-uncached
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/rewire
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/sigmund
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/table
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/text-table
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/to-iso-string
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/type-detect
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/angular-cli/node_modules/util
I was getting the same error, this fixed it for me:
npm i -g [email protected]
I am also facing this problem. [email protected], [email protected]
Like @Yonet I followed the instructions Upgrading from [email protected] to the angular-cli@webpack.
Then the problem I mentioned disappeared but is replaced by another error msg:
$ npm list -g --depth=0
/usr/local/lib
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
npm ERR! peer dep missing: typescript@^1.9.0-dev, required by @angular/[email protected]
npm ERR! peer dep missing: typescript@^1.8.0 || ^1.9.0-dev, required by [email protected]
And even if I install the requested typescript versions, I still get the same error:
$ npm list -g --depth=0
/usr/local/lib
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
npm ERR! peer dep missing: typescript@^1.9.0-dev, required by @angular/[email protected]
npm ERR! peer dep missing: typescript@^1.8.0 || ^1.9.0-dev, required by [email protected]
But when I inspect one level below I see an UNMET PEER DEPENDENCY that does not come out as an npm ERR:
$ npm list -g --depth=1
/usr/local/lib
โโโฌ [email protected]
โ โโโ @angular/[email protected]
โ โโโ @types/[email protected]
โ(...)
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ UNMET PEER DEPENDENCY [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โ(...)
โ โโโ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โ(...)
โ โโโ [email protected]
โ โโโ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โ(...)
โ โโโ [email protected]
โโโ [email protected]
โโโฌ [email protected]
โโโ [email protected]
โ(...)
โโโ [email protected]
npm ERR! peer dep missing: typescript@^1.9.0-dev, required by @angular/[email protected]
npm ERR! peer dep missing: typescript@^1.8.0 || ^1.9.0-dev, required by [email protected]
So the error msg is about [email protected] which does not exist (the latest version being 1.8.10 as of 15aug16)
And if I go 2 levels deep, I see an additional UNMET PEER DEPENDENCY, the one that is caught by npm ERR:
$ npm list -g --depth=2
/usr/local/lib
โโโฌ [email protected]
โ โโโฌ @angular/[email protected]
โ โ โโโ [email protected]
โ โ โโโ UNMET PEER DEPENDENCY typescript@^1.8.0 || ^1.9.0-dev
โ โโโ @types/[email protected]
โ โโโ @types/[email protected]
(...)
Does somebody know what's going on ?
It does not look consistent to me..
@oscar6echo I have the same error message about typescript. It is just a warning. I ignored it and my app works fine so far.
Since this doesn't happen with the webpack releases and they are not using npm shrinkwrap, it definitely seems related.
@oscar6echo those peerDep errors turn to warnings in npm 3. We hadn't listed npm 3 as needed in the readme, but it most definitely is for A2 development. https://github.com/angular/angular-cli/pull/1748 adds it there.
@Yonet :wave:
Yeah probably related to shrinkwrap. I'll try to figure out what's going. There's probably a way to clean up the shrinkwrap file.
Any solution for this? I got the same problem.
OS: El Capitan
node -v 6.5
npm 3.10.3
sudo npm i -g [email protected]
"sudo npm list -g --depth=0" gives the following:
npm ERR! peer dep missing: typescript@^1.9.0-dev, required by @angular/[email protected]
npm ERR! peer dep missing: typescript@^1.8.0 || ^1.9.0-dev, required by [email protected]
And when i try to type anything that start with "ng" in the terminal, it says "ng: command not found."
That's not related to this issue @RigaNik. The issue mentions extraneous errors, you get missing peer dependency errors. If something does not work for you, google it or open a new issue. ([Edit]: Sorry, I noticed just now that this issue drifted a bit in the discussion)
Any solution for this? I got the same problem.
If everything works as expected, you can ignore the error, since some packages still rely on older versions of typescript, but that doesn't prevent them from working in most cases.
And when i try to type anything that start with "ng" in the terminal, it says "ng: command not found."
Did you install angular-cli globally? npm i -g [email protected] where x is the release you want (in your case, 2, I think)
Closing this as obsolete. We fixed a lot of our dependencies now and shouldn't have extraneous ones.
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-cli/ast-tools/node_modules/tsickle
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/node-gyp/node_modules/path-array
npm ERR! extraneous: [email protected] /usr/local/lib/node_modules/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color
How can I remove unnecessary module?
@hansl
still having similar issues with 1.0.0-beta.30
$ npm ls -g --depth=0
โโโ @angular/[email protected]
npm ERR! extraneous: [email protected] ..../node_modules/@angular/cli/node_modules/@angular-cli/ast-tools/node_modules/tsickle
$ ng --version
@angular/cli: 1.0.0-beta.30
node: 6.9.4
Yes, I still see this message but only for "tsickle" now.
npm list -g --depth=0
+-- [email protected]
npm ERR! extraneous: [email protected] ...\node_modulesangular-cli\node_modules\@angular-cli\ast-tools\node_modules\tsickle

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._
Most helpful comment
Yes, I still see this message but only for "tsickle" now.
npm list -g --depth=0
+-- [email protected]
npm ERR! extraneous: [email protected] ...\node_modulesangular-cli\node_modules\@angular-cli\ast-tools\node_modules\tsickle