Reputation: 79
is there a way to install dev version of nwjs automatically from package.json like when I type npm install?
Like when i type npm i nw --nwjs_build_type=sdk
I tried setting environment variable like this in package.json:
"scripts": {
"preinstall": "set NWJS_BUILD_TYPE=sdk"}
but it did not work?
Upvotes: 1
Views: 423
Reputation: 11
npm install
install all required dependencies of node project. if you want to add another package then you have to install specific package
For Example :
npm i nwjs
or
npm i [package name, another Package name]
Upvotes: 1