Problem: When using the NPM module postinstall scripts do not run.
To reproduce:
- Create a repo with a
package.json, and another package.json nested in a folder.
- Give the
package.json in root the following script: "postinstall": "npm-recursive-install --skip-root".
- Give the nested
package.json the following script: "postinstall": "echo \"hi\""
- 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.
Problem: When using the NPM module postinstall scripts do not run.
To reproduce:
package.json, and anotherpackage.jsonnested in a folder.package.jsonin root the following script:"postinstall": "npm-recursive-install --skip-root".package.jsonthe following script:"postinstall": "echo \"hi\""npm installin the root folderResult: The phrase
hiwill not echo in console.Expected Result: The phrase
hiwill echo in console.