isaacs/npm — Issue #2068: error when npm install  -d
Author: nathanyan
Created: 2012-01-20 06:17:20+00:00
State: open

C:\Program Files\nodejs>npm install -d
npm info it worked if it ends with ok
npm info using npm@1.1.0-2
npm info using node@v0.6.8
npm ERR! Couldn't read dependencies.

npm ERR! Error: ENOENT, no such file or directory 'C:\Program Files\nodejs\package.json'
npm ERR! You may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Windows_NT 5.2.3790
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-li.js" "install" "-d"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! path C:\Program Files\nodejs\package.json
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory 'C:\Program Files\nodejs\pack
age.json'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Program Files\nodejs\npm-debug.log
npm not ok