We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Problems installing particle-cli [answered]

asked 2016-05-13 03:11:54 +0300

RethoricalCheese gravatar image

updated 2018-12-03 21:48:22 +0300

Tanghus gravatar image

So, I am trying to install particle-cli via Node.js 4.4.0 which I found here: https://build.merproject.org/package/binary/home:nielnielsen/nodejs?arch=armv8el&filename=nodejs-4.4.0-10.2.1.jolla.armv7hl.rpm&repository=sailfish_latest_armv7hl Using command npm install -g particle-cli (and npm install --unsafe-perm -g particle-cli) and it fails, saying " Failed at the serialport@2.1.2 install: 'node-pre-gyp install --fallback-to-build' ".

So theres a problem installing serialport. Tried to install serialport (npm install -g serialport and npm install --unsafe-perm -g serialport) and it says "Error, not found: make" and " Failed at the serialport@3.1.1 install: 'node-pre-gyp install --fallback-to-build' "

Even updated python and GCC to these versions: 2.7.9 python 4.8.3 GCC

Any idea how to help a novice like me out? Or just tell me it's impossible and I will move on :D

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by raketti
close date 2016-05-13 14:56:08.450730

Comments

works correctly with node 0.12.7

juiceme ( 2016-05-14 16:51:02 +0300 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2016-05-13 10:12:08 +0300

filipb92 gravatar image

Looks like make is not installed, you can install that using pkcon, like

devel-su
pkcon refresh
pkcon install make

for using devel-su see here

edit flag offensive delete publish link more
0

answered 2016-05-13 13:06:58 +0300

RethoricalCheese gravatar image

Thanks alot!

But turns out it wasn't the only problem. After installing make, I could install serialport but not the 2.1.2 which particle-cli wanted because it was faulty somehow. Instead I did npm install -g serialport@2.0.2 particle-cli and it finally worked. 2.0.2 because it wanted 2.0.2 or above but not 3.x.x.

So it's problem solved.

edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2016-05-13 03:11:54 +0300

Seen: 214 times

Last updated: May 13 '16