angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ERR! extraneous

Open griffiti opened this issue 10 years ago • 21 comments

Please provide us with the following information:

  1. OS? Windows 7
  1. 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
  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.
  3. 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_modules\growl 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

griffiti avatar Jun 21 '16 21:06 griffiti

Same here /\

michael-jennings avatar Jun 23 '16 00:06 michael-jennings

It doesn't seem to prevent the use of angular-cli.

griffiti avatar Jun 23 '16 14:06 griffiti

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...

oscar6echo avatar Jul 20 '16 22:07 oscar6echo

Does this still happen on more recent betas?

filipesilva avatar Jul 28 '16 02:07 filipesilva

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

sprypradeep avatar Jul 28 '16 21:07 sprypradeep

This might be due to the use of npm shrinkwrap. @hansl do these errors seem familiar?

filipesilva avatar Jul 29 '16 15:07 filipesilva

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.

m99coder avatar Aug 01 '16 06:08 m99coder

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

osenvosem avatar Aug 04 '16 05:08 osenvosem

I was getting the same error, this fixed it for me: npm i -g [email protected]

Yonet avatar Aug 10 '16 21:08 Yonet

I am also facing this problem. [email protected], [email protected]

ghost avatar Aug 11 '16 19:08 ghost

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 avatar Aug 15 '16 00:08 oscar6echo

@oscar6echo I have the same error message about typescript. It is just a warning. I ignored it and my app works fine so far.

Yonet avatar Aug 15 '16 04:08 Yonet

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:

filipesilva avatar Aug 19 '16 03:08 filipesilva

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.

hansl avatar Aug 19 '16 04:08 hansl

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."

RigaNik avatar Sep 08 '16 13:09 RigaNik

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)

ghost avatar Sep 08 '16 14:09 ghost

Closing this as obsolete. We fixed a lot of our dependencies now and shouldn't have extraneous ones.

hansl avatar Dec 21 '16 19:12 hansl

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?

zh-wowtv avatar Feb 03 '17 13:02 zh-wowtv

@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

sajidali avatar Feb 06 '17 13:02 sajidali

Yes, I still see this message but only for "tsickle" now.

npm list -g --depth=0 +-- [email protected]

npm ERR! extraneous: [email protected] ...\node_modules\angular-cli\node_modules@angular-cli\ast-tools\node_modules\tsickle

2017-02-06_13-58-38

spjeff avatar Feb 06 '17 19:02 spjeff