-
Notifications
You must be signed in to change notification settings - Fork 136
Installing dependencies fails #57
Comments
in your trace, you're using node v12.7. use node v10.40 instead – this should resolve issues with the https://community.particle.io/t/local-cloud-on-raspberry-pi/5708/69 |
Several points for the Particle team:
|
Actually, it will install and run under a newer version of NodeJS - just takes some TLC to make it work. FWIW I've found it easiest to use "n" to switch between NodeJS versions. I've only tried the official repo and "n" versions of node. N makes it easy to switch versions. I have spark-server running on NodeJS 4.2.2, NPM 2.14.7, Raspbian Wheezy. The keys to make this happen are this:
Now install spark-server with npm --verbose -g install spark-server. However, it will fail until you make these edits:
Also particle-cli installs and runs with this version of nodejs. To get this to happen I needed similar edits to package.json; and on Wheezy I built dfu-util from (github) source to obtain version 0.8. FWIW - I'm not sure but I think the rumors/reports of problems with URSA and Crypto are due to V8 versions. NodeJS runs on V8. NodeJS v0.10 does not support ECMAScript6 because it only runs on an older V8 engine. NodeJS 0.12+ supports V8 engines with ECMA6 support. The V8V package is unreliable for investigating this. They appear to run as they should, but !Proceed With Caution! I'm not 100% confident yet because I have to re-issue keys and reclaim photon. Follow up: spark-server seems to work fine. BACKUP spark-server/user -- I ran into problems because I accidentally nuked it. Beware Express 4.x and node-oauth 2.x do not work in package.json without code-rework. |
OS: Windows 10
The text was updated successfully, but these errors were encountered: