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

sane up failed by Error: Cannot find module 'which' #19

Closed
feitian124 opened this issue Mar 24, 2015 · 4 comments
Closed

sane up failed by Error: Cannot find module 'which' #19

feitian124 opened this issue Mar 24, 2015 · 4 comments

Comments

@feitian124
Copy link
Contributor

i pulled the latest commit c1fd0e1, then npm install, bower install,
then find that sane up failed.

22:11 $ sane up
module.js:338
    throw err;
          ^
Error: Cannot find module 'which'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/ming/work/sane/lib/tasks/checkEnvironment.js:3:13)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (/home/ming/work/sane/node_modules/traceur/src/node/require.js:65:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)

after sudo npm install -g which it is resolved.

write here so anyone who met same problem may get help and we may need an solution or document.

@IanVS
Copy link
Collaborator

IanVS commented Mar 24, 2015

Hi @feitian124, what version of SANE are you using?

@feitian124
Copy link
Contributor Author

the latest one 0.0.24

@IanVS
Copy link
Collaborator

IanVS commented Mar 24, 2015

That looks like the bug that was fixed by sane/sane@db69462

But that bug was introduced and fixed after 0.0.24, so I can only think you must have a fork that is npm linked to your global. Try this:

$ rm -rf node_modules
$ npm uninstall -g sane-cli
$ npm cache clean
$ npm install -g sane-cli
$ npm install

After that, try to sane up again.

@feitian124
Copy link
Contributor Author

@IanVS thank you. I tried then sane up is ok without a global installed which.

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