gruntjs - npm windows install globally results in npm ERR! extraneous -
i new grunt , npm. trying "cookbook-example" on site 'http://tech.pro/tutorial/1190/package-managers-an-introductory-guide-for-the-uninitiated-front-end-developer#front_end_developers'. should not have there now, thought share site. far good, til comes global installing. (ok, errors had figure out, have working npm).
when comes point trying install globally stuck.
what did far testing globally installing package:
created test-directory
grunttest
inside directory:
npm install -g jshint
output can see:
npm http https://registry.npmjs.org/jshint npm http 304 https://registry.npmjs.org/jshint ... npm http 304 https://registry.npmjs.org/string_decoder c:\program files\nodejs\node_modules\npm\jshint -> c:\program files\nodejs\node_modules\npm\node_modules\jshinnt jshint@2.4.4 c:\program files\nodejs\node_modules\npm\node_modules\jshint ├── console-browserify@0.1.6 ├── exit@0.1.2 ├── underscore@1.4.4 ├── shelljs@0.1.4 ├── minimatch@0.2.14 (sigmund@1.0.0, lru-cache@2.5.0) ├── cli@0.4.5 (glob@3.2.9) └── htmlparser2@3.3.0 (domelementtype@1.1.1, domutils@1.1.6, domhandler@2.1.0, readable-stream@1.0.26-2)
i realize 304, should ok, due says resource not modified since last installation (few minutes before).
checking if jshint exists with:
`npm -global list`
output:
npm@1.4.3 c:\program files\nodejs\node_modules\npm ├── abbrev@1.0.4 ├── ansi@0.2.1 ├─... ├── ├── graceful-fs@2.0.2 ├── inherits@2.0.1 ├── ini@1.1.0 ├─┬ init-package-json@0.0.14 │ └── promzard@0.2.1 ├─┬ jshint@2.4.4 extraneous │ ├─┬ cli@0.4.5 │ │ └─┬ glob@3.2.9 │ │ └── inherits@2.0.1 │ ├── console-browserify@0.1.6 │ ├── exit@0.1.2 │ ├─┬ htmlparser2@3.3.0 │ │ ├── domelementtype@1.1.1 │ │ ├── domhandler@2.1.0 │ │ ├── domutils@1.1.6 │ │ └─┬ readable-stream@1.0.26-2 │ │ └─... ├── text-table@0.2.0 ├── uid-number@0.0.3 └── which@1.0.5 **npm err! extraneous: jshint@2.4.4 c:\program files\nodejs\node_modules\npm\node_modules\jshint npm**
questions:
- why npm err! extraneous ...?
- what mean?
- how can resolve issue?
information:
i on windows-machine windows 7, using cygwin shell. trying jshint (jshint sometestfile.js
) of course not work.
thanks in advance, meru
npm err! extraneous
means package installed not listed in project's package.json
.
since you're listing packages have been installed globally, it's going give lot of extraneous errors can ignored because things installed globally not in project's package.json
.
Comments
Post a Comment