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

--modules-folder breakers install (cannot find binaries) #8902

Open
james-lawrence opened this issue Nov 14, 2022 · 3 comments
Open

--modules-folder breakers install (cannot find binaries) #8902

james-lawrence opened this issue Nov 14, 2022 · 3 comments

Comments

@james-lawrence
Copy link

james-lawrence commented Nov 14, 2022

steps to reproduce

yarn add --dev canvas
# this will work
yarn install 
# this will fail
yarn --modules-folder cached/node_modules install
yarn install v1.22.19
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error {HOME}/app/test/cached/node_modules/canvas: Command failed.
Exit code: 127
Command: node-pre-gyp install --fallback-to-build --update-binary
Arguments: 
Directory:  {HOME}/app/test/cached/node_modules/canvas
Output:
/bin/sh: line 1: node-pre-gyp: command not found
@james-lawrence
Copy link
Author

manually setting the environments PATH resolves the issue; but that shouldn't be necessary.

@mhaley37
Copy link

mhaley37 commented Aug 5, 2023

Could you elaborate on your workaround @james-lawrence ? I've recently run into the same issue. Thanks.

@james-lawrence
Copy link
Author

james-lawrence commented Aug 5, 2023

sure. not the exact command we're running but these are all the values we needed to adjust.

BUILD_PATH={dir} PATH=${PATH}:{dir}/node_modules/.bin yarn --modules-folder ${dir}/console/node_modules --cache-folder {dir}/console/cached --cwd ${dir}/console build

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