Skip to content
Advertisement

Tag: package.json

Node engine 8.x or 10.x in package.json

I tried to specify the node engine in a package.json to accept both 8 and 10 version. I tried to type this: But running yarn results in: The engine “node” is incompatible with this module. Expected version “8.x|10.x” If I replace with: … it works (i.e no error). Is there a way to accept two versions of node engine in

How to remove folder with npm before build

I’ve got a scripts “build”: “rimraf dist webpack –progress –config webpack/prod.js”, But actually,it removed not dist but all file inside webpack folder. But I need delete only dist Answer Npm scripts are basically the same as running the commands directly in bash. In your case, you are running rimraf dist webpack which means webpack is an argument for rimraf. To

Advertisement