npm pkg delete scripts.test

Category: Node.js & npm/yarn

npm pkg delete scripts.test

Remove a field from package.json using the command line

Removes a specific field from package.json. Handy for cleaning up generated files or automating package.json edits in scripts.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.