run-script-os does not work on npm 7.1.0
See original GitHub issueThe environment variable npm_config_argv
is not available anymore:
https://github.com/npm/rfcs/blob/latest/implemented/0021-reduce-lifecycle-script-environment.md
The alternative it seems is to use npm_command
and npm_lifecycle_event
instead.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[BUG] npm ci doesn't run postinstall script #1905 - GitHub
One thing that's slightly different than OP's issue, is that (I believe) the postinstall scripts run are in Husky's module, and not in...
Read more >npm run scripts does not working - node.js - Stack Overflow
js and trying making the scripts in package.json file to be working. For example I have the next package.json file: { "name": "my ......
Read more >npm-run-script
This runs an arbitrary command from a package's "scripts" object. If no "command" is provided, it will list the available scripts. run[-script] is...
Read more >npm Blog Archive: Release v7.1.0
json can access binaries when running npm run ). Update now and give them a try: npm install -g npm@7. You can see...
Read more >Using Npm Scripts as a Build Tool in 2022 - Delicious Brains
This can lead to problems like: There isn't a plugin for the package you want to use. The plugin is out of date...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has been fixed with the most recent release of run-script-os (1.1.5)
While you wait for this to be officially merged you can change to use my version by changing your package.json to look like this: