-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug] Native dependencies fail to build if the project's path contains spaces #716
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This issue reproduces on master:
|
Ahah it seems that I finally managed to make the repo fail correctly 🎉 Sorry for the noise 😅 |
Can you try with Node 12? Up until then Node had a longstanding issue with that (cf my PR at nodejs/node#24065). We could add a more helpful error message, however, by checking whether |
@arcanis I can confirm that it works with the active LTS 👍 |
Yep, for sure! |
Describe the bug
Native dependencies fail to build if there is a space in the project's path. It's happening during the compilation phase of the dependency.
I've tracked down the error and it comes the fact we add a
--require /path/to/.pnp.js
inNODE_OPTIONS
. The path gets truncated if it contains a space (cf. screenshot).NODE_OPTIONS
documentation mentions that options containing spaces should be escaped with a\
. However when I tried to monkey patch to test if it works, it was still truncating the path. I'm not exactly sure why though...Do you know where to properly patch the code for this, in order to test if adding a
\
really works?To Reproduce
Screenshots
In the following path:
/Users/ngryman/Projects/OSS/Code/berry spaces
, here is the log of the build when runningyarn add node-sass
:Environment if relevant (please complete the following information):
10.17.0
master branch
The text was updated successfully, but these errors were encountered: