eclipse-agail / agile-sdk

JavaScript Agile IoT SDK
Eclipse Public License 2.0
2 stars 4 forks source link

Error during build #11

Closed nopbyte closed 7 years ago

nopbyte commented 7 years ago

I am playing a bit with the sdk, but when I try to run npm run build and I get the following:

src/websocket.js -> dist/websocket.js
sh: 1: build-browser: not found

npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/home/dp/.nvm/versions/node/v7.2.1/bin/node" "/home/dp/.nvm/versions/node/v7.2.1/bin/npm" "run" "build"
npm ERR! node v7.2.1
npm ERR! npm  v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! agile-sdk@0.4.0 build: `babel src --out-dir dist --copy-files && build-browser`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the agile-sdk@0.4.0 build script 'babel src --out-dir dist --copy-files && build-browser'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the agile-sdk package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     babel src --out-dir dist --copy-files && build-browser
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs agile-sdk
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls agile-sdk
npm ERR! There is likely additional logging output above.

Is the procedure to extend this sdk documented anywhere? I don't have previous experience with projects that use JS code in the browser and server-side, so this question may be stupid for others, but I don't know the procedure to extend this project.

craigmulligan commented 7 years ago

Hey @nopbyte, look's like a bug in the npm script, I had actually fixed it but must have forgot to push.

If you re-pull it should work as expected 👍

nopbyte commented 7 years ago

Perfect. Thanks a lot.