Electron-builder is not recognized


#1

I just install electron-builder to my devDependencies but when i run it shows:

‘electron-builder’ is not recognized as an internal or external command,
operable program or batch file.

my install command:
npm install --save-dev electron-builder

My package.json
"buildWin": "npm run packWin && electron-builder \"dist/win/test-win32-x64\" --platform=win --out=dist/win --config=builder.json"

  "devDependencies": {
    "asar": "^0.11.0",
    "electron-builder": "^3.2.0",
    "electron-packager": "^5.2.1",
    "electron-prebuilt": "^0.37.2"
  },

#2

I’m with the same problem. the electron-packager works but the electron-builder not.


#3

I’m using this: node node_modules/.bin/build (Then you can just stick your command line arguments after like: node node_modules/.bin/build --dist --platform darwin win32 --arch all)

It’s something I spotted in some of the example projects after running into the same trouble


#4

Hey can someone look into this issue I am facing, I am not creating a new thread here as it is already on stackoverflow