$ npx -qp [email protected] -c 'npm run'
start:webpack-dev-server --open
build:NODE_ENV=production webpack -p
$ npx -qp [email protected] -c 'npm run'
npm timing config:load:defaults Completed in 1ms
...
npm timing npm:load Completed in 25ms
npm run-script <command> [-- <args>]
aliases: run, rum, urn
npm timing npm Completed in 155ms
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ahu/.npm/_logs/2020-08-23T00_18_04_815Z-debug.log
$ npx -qp [email protected] -c 'npm run'
start:webpack-dev-server --open
build:NODE_ENV=production webpack -p
npx -qp [email protected] -c 'npm run'
Root cause: https://github.com/npm/config/issues/2
We should be skipping env values of ''
rather than putting them in the configuration object.
Isn鈥檛 the empty string distinct from unset?
It is, but unfortunately npm 6 did not respect this distinction appropriately.
Fixed in latest beta.