I a trying to use npm to minify javascript.
This is my package.json:
{ \"name\": \"name1\", \"version\": \"1.0.0\", \"description\": \"\", \"
The entries under scripts are commands that are run by NPM. They are not simply paths to JavaScript files.
scripts
You need to tell NPM to run your JavaScript tasks using node:
node
... "scripts": { "minifyjs": "node minifyJs", "minifycss": "node minifyCss", "minifyhtml": "node minifyHtml" }, ...