-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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' #6983
Comments
Hey, could you let us know where you're getting this output from? Is that from the command line or some sort of log in ST3? |
@kaicataldo This is from ST3 debug log |
Is this reproduced outside of Dropbox? |
@mysticatea Yes, I have tried to move the project outside of Dropbox and the error still occurs. |
Ah, sorry. |
Hi @mysticatea All of the files in my local dropbox folder, I don't know why those files will be broken? |
I'm not sure why those files will be broken, too. If it's reproduced outside of Dropbox, I don't have another idea. :/ |
I actually found a reproduction case for this (totally coincidentally, while working on a personal project). I get the exact same error when I copy a project directory (including its node_modules) and try to run the local ESLint installation from the copied directory. Sounds like maybe something Dropbox is doing is causing a similar issue? @wellyshen Can you confirm this does or doesn't happen when the project directory is outside of your Dropbox directory? |
@kaicataldo Yes, I am doing the same thing, I move my project out of my Dropbox folder. And reinstall the node_modules. Now I am observe if the error will happen or not. |
@ghost does that fix your problem? |
ping @ghost, any chance you could give us an update if your problem is fixed? Thanks! |
Closing, as there has been no updates from the author in more than 40 days. |
This happens to me and my team occasionally — the root cause seems to be that somewhere along the line This just happened to me while working on this repo (i.e. running |
The point is that Dropbox doesn't properly sync symlinks. So if This doesn't happen with ESLint only, it impacts every Node.js module which provides at least one executable which relies on relative paths. Possible solutions:
This thing is incredibly annoying... |
Yes, it does occur with other modules. After I posted that, the same thing happened with Even more annoying to me after some Googling to see that Dropbox has had this issue for years and years. Ironic because a lot of their user base must be developers. |
I am using eslint v3.3.1 with Sublime text 3 to develop my react web app. Currently I encounter an error say :
And when I remove and re-install node_modules, this error seems to be solved, but next time I launch my code editor this error occurs again, does anyone has this problem?
Here's my .eslintrc :
The text was updated successfully, but these errors were encountered: