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

Yarn postinstall scripts cannot resolve packages #1710

Closed
wouterverweirder opened this issue Nov 6, 2016 · 2 comments
Closed

Yarn postinstall scripts cannot resolve packages #1710

wouterverweirder opened this issue Nov 6, 2016 · 2 comments

Comments

@wouterverweirder
Copy link

Using yarn 0.16.1

Do you want to request a feature or report a bug?
bug

What is the current behavior?
yarn adds fail on postinstall scripts that require dependencies, such as node-gyp.
When adding one of those modules, yarn will fail on the postinstall script, saying that it cannot resolve a module used in that postinstall script. However, when viewing the node_modules folder, the module in question is there. Some cases where I've seen this happening are modules which are compiling native code with nan through node-gyp, yarn will not find node-gyp.

If the current behavior is a bug, please provide the steps to reproduce.
yarn add pty.js or yarn add electron-rebuild

What is the expected behavior?
Installs complete successfully, postinstall script of these modules runs successfully.

Please mention your node.js, yarn and operating system version.
node v6.8.0
yarn 0.16.1
OSX 10.12.1 Sierra

@wouterverweirder
Copy link
Author

yarn-install-electron-rebuild

@wouterverweirder
Copy link
Author

removed & reinstalled node and yarn, issue seems resolved.

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

1 participant