steps
-
download medis source
- from github
-
running locally
-
install deps
$ npm install
-
compile assets
$ num run build ... npm ERR! missing script: build ...
-
run with electron
$ npm run electron
-
fixed
-
npm ERR! missing script: build
-
how to solve npm run build dev missing script
npm run build will check `script` section of the `package.json` try to find a script titled `build` if no script named `build` it will error out
-
check package.json
$ more package.json ... "scripts": { "start": "rm Medis.app/Contents/Resources/app.asar; NODE_ENV=debug Medis.app/Contents/MacOS/Electron .", "dev": "./bin/dev", "deploy": "NODE_ENV=production ./bin/deploy", "release": "NODE_ENV=production ./bin/release", "sign": "./bin/sign", "unsign": "./bin/unsign", "tomedis": "./bin/tomedis" }, ... # no build found # so use release $ npm run release ... npm ERR! Failed at the medis@0.6.1 release script 'NODE_ENV=production ./bin/release'. Make sure you have the latest version of node.js and npm installed ...
-
-
upgrade nodejs to the latest version on mac os
-
use
brew
to update node$ brew update $ brew upgrade node $ npm install -g npm
-
use
npm
$ sudo npm cache clean -f $ sudo npm install -g n $ sudo n stable
-