question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

run-script-os does not work on npm 7.1.0

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
charlesgusecommented, Jan 16, 2021

This has been fixed with the most recent release of run-script-os (1.1.5)

3reactions
jamesmstonecommented, Jan 12, 2021

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:

    "run-script-os": "github:jamesmstone/run-script-os",
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found