setup-deps.js not getting downloaded when installing. #95

Closed
timothyswt opened this Issue Jan 8, 2014 · 6 comments

Comments

Projects
None yet
4 participants

This causes the postinstall to fail

mkrain commented Jan 8, 2014

Here's the command and error (this happens also when installing chokidar manually):

C:\Projects\myProject>npm install
npm http GET https://registry.npmjs.org/karma
npm http 304 https://registry.npmjs.org/karma
npm http GET https://registry.npmjs.org/di
npm http GET https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/http-proxy
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/colors/0.6.0-1
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/log4js
npm http GET https://registry.npmjs.org/chokidar
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/useragent
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/connect
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/di
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/http-proxy
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/colors/0.6.0-1
npm http 304 https://registry.npmjs.org/log4js
npm http 304 https://registry.npmjs.org/chokidar
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/useragent
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/connect
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/lodash

chokidar@0.8.1 postinstall C:\Projects\myProject\node_modules\karma\node_modules\chokidar
node setup-deps.js

module.js:340
throw err;
^
Error: Cannot find module 'C:\Projects\myProject\setup-deps.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3

Collaborator

es128 commented Jan 9, 2014

Actually looks like an npm bug on windows. It should be running the postinstall command from the module directory, not the project directory as it appears to be doing.

Owner

paulmillr commented Jan 9, 2014

Can you update node and npm and tell us the result?

Node and npm were updated to latest (10.24) when we saw the issue. We
tried both the 64 and 32 bit versions,

On Thursday, January 9, 2014, Paul Miller wrote:

Can you update node and npm and tell us the result?


Reply to this email directly or view it on GitHubhttps://github.com/paulmillr/chokidar/issues/95#issuecomment-31933880
.

-Tim Sweet

Owner

paulmillr commented Jan 9, 2014

looks like an npm issue for real, create an issue here: https://github.com/npm/npm/issues

we temporarily got karma installed by copying "setup-deps.js" from this
root project to the root of the folder we were running npm install from, if
that helps.

On Thu, Jan 9, 2014 at 9:25 AM, Paul Miller notifications@github.comwrote:

looks like an npm issue for real, create an issue here:
https://github.com/npm/npm/issues


Reply to this email directly or view it on GitHubhttps://github.com/paulmillr/chokidar/issues/95#issuecomment-31949048
.

-Tim Sweet

paulmillr closed this Mar 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment