You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will be found that some environment variables of the package manager are missing from the printed environment variables.
3⃣️ Run npm script without ultra-runner
$ cd your/package
$ npm run print
Result
It will be found that some environment variables of the package manager (such as npm_node_execpath, npm_config_user_agent) are appearing from the printed environment variables.
Consequences
The various libraries will not work, which using npm_config_user_agent to determine package manager type, aka only-allow.
How to reproduce this problem?
1⃣️ Add npm script
2⃣️ Run npm script with ultra-runner
$ ultra -r --filter '+your/package' npm run print
Result
It will be found that some environment variables of the package manager are
missing
from the printed environment variables.3⃣️ Run npm script without ultra-runner
$ cd your/package $ npm run print
Result
It will be found that some environment variables of the package manager (such as
npm_node_execpath
,npm_config_user_agent
) areappearing
from the printed environment variables.Consequences
The various libraries will not work
, which usingnpm_config_user_agent
to determine package manager type, akaonly-allow
.https://www.npmjs.com/package/only-allow
The text was updated successfully, but these errors were encountered: