Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOENT, open '/home/XXXXX/node_modules/js2coffee/bin/package.json' #134

Closed
hlcfan opened this issue Apr 18, 2012 · 1 comment
Closed

ENOENT, open '/home/XXXXX/node_modules/js2coffee/bin/package.json' #134

hlcfan opened this issue Apr 18, 2012 · 1 comment

Comments

@hlcfan
Copy link

hlcfan commented Apr 18, 2012

hi,i installed js2coffe as README
i cannot run :js2coffee directly in command line,but i found it in node_modules/,so i get into it and run:
$ node js2coffee custom.js > output.coffee

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '/XXXXXX/node_modules/js2coffee/lib/command'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object. (/XXXXXX/node_modules/js2coffee/bin/js2coffee:7:1)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)

after that i ran:
$ npm test

npm ERR! Error: ENOENT, open '/XXXXXXXX/node_modules/js2coffee/bin/package.json'
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.3.1-5.fc16.i686.PAE
npm ERR! command "node" "/usr/local/bin/npm" "test"
npm ERR! cwd /XXXXXXXXX/chatpro/node_modules/js2coffee/bin
npm ERR! node -v v0.6.14
npm ERR! npm -v 1.1.12
npm ERR! path /XXXXXXXX/node_modules/js2coffee/bin/package.json
npm ERR! code ENOENT
npm ERR! message ENOENT, open '/XXXXXXXX/node_modules/js2coffee/bin/package.json'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /XXXXXXXX/node_modules/js2coffee/bin/npm-debug.log
npm not ok

@rstacruz
Copy link
Member

It should be installed through npm install -g js2coffee.

Additionally, npm test should be ran on the js2coffee directory, not js2coffee/bin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants