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

Error: Cannot find module '../lib/cli' (on MacOS) #89

Closed
jkurei opened this issue Oct 2, 2016 · 8 comments
Closed

Error: Cannot find module '../lib/cli' (on MacOS) #89

jkurei opened this issue Oct 2, 2016 · 8 comments

Comments

@jkurei
Copy link

jkurei commented Oct 2, 2016

I was gonna try redux-cli, but I can't get past this and I don't know how to troubleshoot it. This is what I'm getting:

`{ Desktop } > redux new rc-test
module.js:327
throw err;
^

Error: Cannot find module '../lib/cli'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/Users/jesusiniesta/.npm-packages/lib/node_modules/redux-cli/bin/redux.js:3:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)`

I'm on MacOS, using npm 3.10.8 and node 4.3.1. I've reinstalled npm, but it wasn't it. I couldn't replicate this in an Ubuntu system, which made me suspect it's something weird on my machine, but other global modules are working just fine.

@mariotacke
Copy link

Running into the same thing right now. Latest redux-cli.

@anithri
Copy link
Collaborator

anithri commented Sep 18, 2017

Not happening on Ubuntu, I have no access to MacOS.

Could someone olease confirm if this is still the case today?

And any insight on why this might be happening would also be appreciated.

@anithri anithri added the bug label Sep 18, 2017
@SpencerCDixon
Copy link
Owner

Should maybe remove the 'new' command actually or have it go to create-react-app instead of the starter kit

@jamesr73
Copy link
Contributor

Working for me on MacOS Sierra (10.12.6).

I'm managing Node installs with nvm. Tested with:
node v4.3.1 + npm v2.14.12 (default)
node v4.3.1 + npm v3.10.8 (as originally reported)
node v6.11.3 + npm v3.10.10

@jamesr73
Copy link
Contributor

+1 for new => create-react-app

@anithri
Copy link
Collaborator

anithri commented Sep 20, 2017

moving conversation about new, starter kit, create-react-app etc to #105

@jkurei are you still having this problem or could you confirm you aren't?

@anithri
Copy link
Collaborator

anithri commented Oct 1, 2017

One way that error can happen is to execute the cli in such a way that it doesn't think it's in the directory it's supposed to be in. bin/bp expects to find the cli code at ../lib/cli.

This probably is a problem with how npm installed the package or how @jkurei path is defined.

@anithri
Copy link
Collaborator

anithri commented Oct 1, 2017

With a complete rewrite of the CLI, I think this bug or misconfiguration is a relic of history now, and such I'm closing this.

Please feel free if you have the problem after the 2.0 release.

@anithri anithri closed this as completed Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants