isaacs/npm — Issue #2074: package.json path windows
Author: apYdr6uxv
Created: 2012-01-22 16:14:41+00:00
State: open

C:\Program Files (x86)\nodejs>npm install -d
info it worked if it ends with ok
verbose cli [ 'C:\\Program Files (x86)\\nodejs\\\\node.exe',
verbose cli 'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
verbose cli 'install',
verbose cli '-d' ]
info using npm@1.1.0-2
info using node@v0.6.8
verbose config file C:\Users\user\.npmrc
verbose config file C:\Program Files (x86)\nodejs\etc\npmrc
verbose config file C:\Program Files (x86)\nodejs\node_modules\npm\npmrc
verbose mkdir done: C:\Users\user\AppData\Roaming\npm 755
verbose mkdir done: C:\Program Files (x86)\nodejs 755
ERR! Couldn't read dependencies.
ERR! Error: ENOENT, no such file or directory 'C:\Program Files (x86)\nodejs\package.json'
ERR! You may report this log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Windows_NT 6.1.7601
ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-d"
ERR! cwd C:\Program Files (x86)\nodejs
ERR! node -v v0.6.8
ERR! npm -v 1.1.0-2
ERR! path C:\Program Files (x86)\nodejs\package.json
ERR! code ENOENT
ERR! message ENOENT, no such file or directory 'C:\Program Files (x86)\nodejs\package.json'
ERR! errno {}
verbose exit [ 1, true ]

package.json is found in \node_modules\npm\ and the command works fine if run from there.