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

Spaces in path causes "Error: cannot find module" #88

Open
AnnanFay opened this issue Mar 10, 2018 · 1 comment
Open

Spaces in path causes "Error: cannot find module" #88

AnnanFay opened this issue Mar 10, 2018 · 1 comment

Comments

@AnnanFay
Copy link

AnnanFay commented Mar 10, 2018

If you try to build a file which has a space in the path to the file this causes an error. Only tested on Windows. In my case the error is:

Error: Cannot find module 'F:\Dropbox'
    at Function.Module._resolveFilename (module.js:555:15)
    at Function.Module._load (module.js:482:25)
    at Function.Module.runMain (module.js:701:10)
    at startup (bootstrap_node.js:193:16)
    at bootstrap_node.js:617:3

The filepath in this case being: "F:\Dropbox (Personal)\[...]\main.js"

I fixed the issue for myself by changing Nodejs.sublime-build to:

    "shell_cmd": "taskkill /F /IM node.exe & node \"$file\""
@root-hal9000
Copy link

I am having the same problem ... sand sadly, dropbox is not very nice about being able to change the folder names

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