"ERR! Not a package" when installing node.js dependencies for yepnope.js

Pretty sure I'm doing something stupid here - I'm not sure if this is typical of yepnope ... my node knowledge is not so hot.

Just trying to grab and build a repo to play with some things (I'm not trying to use it in another project here), which I do like this:

$ npm cache clean
$ git clone https://github.com/SlexAxton/yepnope.js.git
$ cd yepnope.js
$ git checkout v2.0     # this is the branch I want
$ npm install

But half way I get something like this:

npm http GET https://registry.npmjs.org/nopt/-/nopt-2.1.1.tgz
npm http 200 https://registry.npmjs.org/wd/0.0.26
npm http GET https://registry.npmjs.org/wd/-/wd-0.0.26.tgz
npm ERR! not a package /var/folders/00/17q10000h01000cxqpysvccm004yw4/T/npm-13923/1363859875320-0.8848134819418192/tmp.tgz
npm http 304 https://registry.npmjs.org/uglify-js
npm ERR! Error: ENOENT, open '/var/folders/00/17q10000h01000cxqpysvccm004yw4/T/npm-13923/1363859875320-0.8848134819418192/package/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Darwin 12.2.1
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/<username>/code/yepnope.js
npm ERR! node -v v0.8.12
npm ERR! npm -v 1.2.14
npm ERR! path /var/folders/00/17q10000h01000cxqpysvccm004yw4/T/npm-13923/1363859875320-0.8848134819418192/package/package.json
npm ERR! code ENOENT
npm ERR! errno 34

It still continues to the end, but ends:

Extracting zip contents
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/<username>/code/yepnope.js/npm-debug.log
npm ERR! not ok code 0

It is odd that the string npm ERR! not a packageoccurs elsewhere every time I try to do this (the new repository is cloned each time) - perhaps only because it fetches things asynchronously, though?

npm-debug.log , , " " - , m , - , .

, - ? !

+5
2

, npm ERR! not a package:

  • -
  • - github repo -
+9

@user568109: , - package.json, http://jsonlint.com.

0

All Articles