-
Notifications
You must be signed in to change notification settings - Fork 12k
ERR! extraneous #1160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same here /\ |
It doesn't seem to prevent the use of angular-cli. |
Same here.
After running
which works fine in spite of some WARNINGs
then the following list command
displays some worrying npm errors:
What do these message mean ?
|
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/. It would be great if you could manage to fix this. |
The error occurred while
|
I was getting the same error, this fixed it for me: |
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:
And even if I install the requested typescript versions, I still get the same error:
But when I inspect one level below I see an UNMET PEER DEPENDENCY that does not come out as an
So the error msg is about And if I go 2 levels deep, I see an additional UNMET PEER DEPENDENCY, the one that is caught by
Does somebody know what's going on ? |
@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. #1748 adds it there. @Yonet 👋 |
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. sudo npm i -g [email protected] "sudo npm list -g --depth=0" gives the following: And when i try to type anything that start with "ng" in the terminal, it says "ng: command not found." |
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.
Did you install |
Closing this as obsolete. We fixed a lot of our dependencies now and shouldn't have extraneous ones. |
How can I remove unnecessary module? |
@hansl
|
Yes, I still see this message but only for "tsickle" now. npm list -g --depth=0 npm ERR! extraneous: [email protected] ...\node_modules\angular-cli\node_modules@angular-cli\ast-tools\node_modules\tsickle |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
ng --version
. If there's nothing outputted, pleaserun in a Terminal:
node --version
And paste the result here. v6.2.2
do on your code? etc.
Installed latest NodeJS 6. Installed typings globally. Then installed angular-cli globally.
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
The text was updated successfully, but these errors were encountered: