NodeOS / nodeos-barebones

5 stars 7 forks source link

Prebuild-install not found? #5

Closed joshgarde closed 8 years ago

joshgarde commented 8 years ago

When running npm install, the qemu install doesn't download the prebuilt release.

$ npm install

> qemu@2.6.0 install /Volumes/NodeOS-OSX/nodejs/node_modules/qemu
> prebuild-install -d https://github.com/NodeOS/qemu/releases/download/v{version}/{platform}-{arch}.tar.gz || npm run build

sh: prebuild-install: command not found

The same problem seems to affect the cross-toolchain installation

> nodeos-cross-toolchain@1.0.0-RC2.11 install /Volumes/NodeOS-OSX/nodejs/node_modules/nodeos-cross-toolchain
> scripts/install

npm ERR! Darwin 14.5.0
npm ERR! argv "/opt/local/bin/node" "/opt/local/bin/npm" "install"
npm ERR! node v4.4.3
npm ERR! npm  v2.15.3
npm ERR! code ELIFECYCLE

npm ERR! qemu@2.6.0 install: `prebuild-install -d https://github.com/NodeOS/qemu/releases/download/v{version}/{platform}-{arch}.tar.gz || npm run build`
npm ERR! Exit status 1

But removing qemu from the dependencies list seems to solve the problem for nodeos-cross-toolchain

> nodeos-cross-toolchain@1.0.0-RC2.11 install /Volumes/NodeOS-OSX/nodejs/node_modules/nodeos-cross-toolchain
> scripts/install

And installing qemu standalone works fine

> qemu@2.6.0 install /Volumes/NodeOS-OSX/qemu
> prebuild-install -d https://github.com/NodeOS/qemu/releases/download/v{version}/{platform}-{arch}.tar.gz || npm run build

Any thoughts?

joshgarde commented 8 years ago

Ah, bug with npm2. Fix: Update to npm3.

MacPorts updated their repo recently to include npm3 so it's pretty much sudo port selfupdate && sudo port uninstall npm2 && sudo port install npm3

piranna commented 8 years ago

Could you be able to do a pull-request adding a 'engines' entry on the package.json file? El 8/7/2016 1:39 AM, "joshgarde" notifications@github.com escribió:

Closed #5 https://github.com/NodeOS/nodeos-barebones/issues/5.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NodeOS/nodeos-barebones/issues/5#event-716436010, or mute the thread https://github.com/notifications/unsubscribe/AAgfvm1SDK7ntuvNpYWAJHGxokO6S4Bjks5qTY4ugaJpZM4JHmAp .

joshgarde commented 8 years ago

It'll be part of the OS X pull request