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

Module has no option to run postinstall scripts #14

Open
DavidDavydovTech opened this issue Apr 1, 2021 · 0 comments
Open

Module has no option to run postinstall scripts #14

DavidDavydovTech opened this issue Apr 1, 2021 · 0 comments

Comments

@DavidDavydovTech
Copy link

DavidDavydovTech commented Apr 1, 2021

Problem: When using the NPM module postinstall scripts do not run.

To reproduce:

  1. Create a repo with a package.json, and another package.json nested in a folder.
  2. Give the package.json in root the following script: "postinstall": "npm-recursive-install --skip-root".
  3. Give the nested package.json the following script: "postinstall": "echo \"hi\""
  4. Run npm install in the root folder

Result: The phrase hi will not echo in console.
Expected Result: The phrase hi will echo in console.

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