-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Plug'n'Play: Error: Cannot find module #6626
Comments
Works with Node 10.13.0 |
|
@mischnic no, this thread is pnp specific 🙂 I need to investigate, but it seems node-gyp.js is called without the PnP hook being setup. This is because the node binary used by node-gyp isn't the one provided by Yarn (which is a shellscript automatically calling the right binaries with the right arguments). |
Theoretically this node indirection should be in the |
I cannot reproduce it on Linux (WSL, actually) 🙁 |
Can reproduce on macOS 10.13.6, Yarn 1.12.1, Node v11.0.0 |
Node sass binaries not available for node.js v11 |
But building it locally should still work? |
The problem is that both A simple workaround for now:
This will ensure that Node is always run with the right hook. I'll setup a PR soon to make this automatic (which will also avoid the ugly |
This is currently still open in stable v1.12.3 or nightly v1.13.0-20181121; Am I correct? |
It should have been fixed with #6629, which landed in the 1.12.3 stable - do you still reproduce the original problem? |
yarn run css
it works with "pnp": false |
I am still getting the same error as in #6613 with yarn 1.13.0 and node 11.10.0 on Windows. Commenting here as it seems like the more active issue of the two. |
I upgraded to yarn version 1.19.2, and still I am getting the error. I ran simple yarn command and also with "NODE_OPTIONS="--require $(pwd)/.pnp.js" yarn"
|
This is unrelated. Node doesn't support well NODE_OPTIONS that contains spaces within their path (hence the |
@arcanis |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When doing
yarn install
, I get an errorIf the current behavior is a bug, please provide the steps to reproduce.
yarn
What is the expected behavior?
Package successfully installed. Without PnP all works fine.
Please mention your node.js, yarn and operating system version.
MacOS 10.14.1
Node 11.0.0
Yarn 1.12.1
The text was updated successfully, but these errors were encountered: