genesix.eu
genesix.eu

Reputation: 79

install nwjs dev version automaticaly when npm i

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

Answers (2)

genesix.eu
genesix.eu

Reputation: 79

I created new file .npmrc and pasted this:

nwjs_build_type=sdk

Upvotes: 1

MOHNISH KUSUMAKAR
MOHNISH KUSUMAKAR

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

Related Questions