skip to Main Content

I’m finding it hard to run the nwjs app in sdk version
in project terminal if we run

nw

usually it opens nw app but in normal version

I want to use debugging tools and it only works in sdk version. I know to open manually ie. if we drag the project folder to nw.exe means it opens in sdk mode.

I wonder if there is any code or command line prompt to open it

i tried running the nw command and it opened in normal version
I want to run the nwjs app in sdk version using terminal or cmd

2

Answers


  1. Chosen as BEST ANSWER

    the following thing worked for me.

    in the project folder update the package.json as,

    {
     "name": "appName",
     "main": "index.html",
     "scripts": {
        "manual": "nw .",
      },
    "devDependencies": {
        "nw": "0.82.0-sdk"
      },
    "engines": {
    "node": "v20.5.0",
    "npm": "9.8.0"
      },
    "packageManager": "[email protected]",
    }
    

    now run the script in command prompt as,

    npm run manual

    This should open your app in nwjs sdk mode :)


  2. Run /path/to/sdk/nw.exe . when you’re in the project directory containing package.json.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search