'Unresolvable cycle detected ' with npm install --dev
Closed this issue · 1 comments
I'm seeing this even with sudo on Ubuntu 12.10 npm version 1.1.16
Any thoughts as to whats going on here?
npm ERR! Error: ENOENT, lstat '/home/malachai/dev/projects/brain/node_modules/mocha/node_modules/jade/node_modules/less/node_modules/ycssmin/tests/files/dataurl-realdata-yuiapp.css.min'
npm ERR! 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!
npm ERR! System Linux 3.5.0-21-generic
npm ERR! command "node" "/usr/bin/npm" "install" "--dev"
npm ERR! cwd /home/malachai/dev/projects/brain
npm ERR! node -v v0.8.9
npm ERR! npm -v 1.1.16
npm ERR! path /home/malachai/dev/projects/brain/node_modules/mocha/node_modules/jade/node_modules/less/node_modules/ycssmin/tests/files/dataurl-realdata-yuiapp.css.min
npm ERR! fstream_path /home/malachai/dev/projects/brain/node_modules/mocha/node_modules/jade/node_modules/less/node_modules/ycssmin/tests/files/dataurl-realdata-yuiapp.css.min
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! message ENOENT, lstat '/home/malachai/dev/projects/brain/node_modules/mocha/node_modules/jade/node_modules/less/node_modules/ycssmin/tests/files/dataurl-realdata-yuiapp.css.min'
npm ERR! errno {}
npm ERR! fstream_stack Writer._finish.er.fstream_finish_call (/usr/lib/nodejs/npm/node_modules/fstream/lib/writer.js:284:26)
npm ERR! fstream_stack Object.oncomplete (fs.js:297:15)
npm ERR! Unresolvable cycle detected
npm ERR! While installing: tap@0.2.6
npm ERR! Found a pathological dependency case that npm cannot solve.
npm ERR! Please report this to the package author.
npm ERR!
npm ERR! System Linux 3.5.0-21-generic
npm ERR! command "node" "/usr/bin/npm" "install" "--dev"
npm ERR! cwd /home/malachai/dev/projects/brain
npm ERR! node -v v0.8.9
npm ERR! npm -v 1.1.16
npm ERR! code ECYCLE
npm ERR! message Unresolvable cycle detected
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/malachai/dev/projects/brain/npm-debug.log
npm not ok
My npm-debug.log:
info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '--dev' ]
info using npm@1.1.16
info using node@v0.8.9
verbose config file /home/malachai/.npmrc
verbose config file /usr/local/etc/npmrc
verbose config file /usr/lib/nodejs/npm/npmrc
verbose caching /home/malachai/dev/projects/brain/package.json
verbose loadDefaults brain@0.6.1
verbose readDependencies: using package.json deps
verbose where, deps [ '/home/malachai/dev/projects/brain',
verbose where, deps [ 'underscore', 'mocha', 'canvas', 'cradle', 'should', 'async' ] ]
verbose from cache /home/malachai/dev/projects/brain/package.json
info preinstall brain@0.6.1
verbose caching /home/malachai/dev/projects/brain/node_modules/cradle/package.json
verbose caching /home/malachai/dev/projects/brain/node_modules/underscore/package.json
verbose caching /home/malachai/dev/projects/brain/node_modules/async/package.json
verbose caching /home/malachai/dev/projects/brain/node_modules/should/package.json
verbose from cache /home/malachai/dev/projects/brain/package.json
verbose readDependencies: using package.json deps
verbose from cache /home/malachai/dev/projects/brain/node_modules/cradle/package.json
verbose from cache /home/malachai/dev/projects/brain/node_modules/underscore/package.json
verbose from cache /home/malachai/dev/projects/brain/node_modules/async/package.json
verbose from cache /home/malachai/dev/projects/brain/node_modules/should/package.json
verbose already installed in /home/malachai/dev/projects/brain skipping underscore@>=1.3.3
verbose cache add [ 'mocha@>=1.0.0', null ]
Then the mocha test fails like so:
mocha test/cross-validation/* --timeout 10000
module.js:340
throw err;
^
Error: Cannot find module 'canvas'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/home/malachai/dev/projects/brain/test/cross-validation/ocr.js:2:14)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Mocha.loadFiles (/usr/local/lib/node_modules/mocha/lib/mocha.js:152:27)
at Array.forEach (native)
at Mocha.loadFiles (/usr/local/lib/node_modules/mocha/lib/mocha.js:149:14)
at Mocha.run (/usr/local/lib/node_modules/mocha/lib/mocha.js:305:31)
at Object. (/usr/local/lib/node_modules/mocha/bin/_mocha:327:7)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Should be fixed. npm install
will now install dev dependencies.