joshmarinacci / ElectronIDE

New web based Arduino IDE
BSD 3-Clause "New" or "Revised" License
246 stars 50 forks source link

Linux Build Help #18

Closed corkybeta closed 10 years ago

corkybeta commented 10 years ago

Hi there, new to Git projects. Probably made a stupid mistake but it's not building for me. Here is the output:

npm WARN package.json arduinox2@0.0.1 No repository field. npm WARN package.json arduinodata@0.1.0 No repository field. npm WARN package.json execSync@1.0.1-pre No repository field. npm http GET https://registry.npmjs.org/serialport npm http 304 https://registry.npmjs.org/serialport npm http GET https://registry.npmjs.org/bindings npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/sf npm http GET https://registry.npmjs.org/node-pre-gyp npm http GET https://registry.npmjs.org/optimist npm http GET https://registry.npmjs.org/nan npm http 304 https://registry.npmjs.org/node-pre-gyp npm http 304 https://registry.npmjs.org/optimist npm http 200 https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/nan npm http GET https://registry.npmjs.org/bindings/-/bindings-1.1.1.tgz npm http 200 https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/async/-/async-0.1.18.tgz npm http 200 https://registry.npmjs.org/sf npm http GET https://registry.npmjs.org/sf/-/sf-0.1.6.tgz npm http 200 https://registry.npmjs.org/bindings/-/bindings-1.1.1.tgz npm http 200 https://registry.npmjs.org/async/-/async-0.1.18.tgz npm http 200 https://registry.npmjs.org/sf/-/sf-0.1.6.tgz npm http GET https://registry.npmjs.org/wordwrap npm http 304 https://registry.npmjs.org/wordwrap

serialport@1.4.0 install /home/corky/Programming/Electron/ElectronIDE/node_modules/serialport node-pre-gyp install --fallback-to-build

node-pre-gyp http GET https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/node-v11-linux-x64.tar.gz node-pre-gyp http 200 https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/node-v11-linux-x64.tar.gz [serialport] Success: "/home/corky/Programming/Electron/ElectronIDE/node_modules/serialport/build/serialport/v1.4.0/Release/node-v11-linux-x64/serialport.node" is installed serialport@1.4.0 node_modules/serialport ├── bindings@1.1.1 ├── sf@0.1.6 ├── async@0.1.18 ├── nan@0.7.1 ├── node-pre-gyp@0.5.16 └── optimist@0.3.7 (wordwrap@0.0.2)

Here is my settings.js. I assumed you no longer have to change the path to metadata.repo:

//where your sketches live exports.usersketches = "/home/corky/sketchbook/";

//where your personal libraries live. new libs will not go here exports.userlibs = "/home/corky/sketchbook/Libraries";

// root of the regular Arduino IDE app exports.root = "/usr/share/arduino/arduino";

//where new libs will be downlaoded to exports.repos = "/home/corky/sketchbook/projects/junkrepos";

// ============== // you shouldn't need to modify anything below this line //template for new sketches exports.sketchtemplate = "sketchtemplate.ino";

//path to the metadata repo exports.datapath = "node_modules/arduinodata/libraries"; exports.boardpath = "node_modules/arduinodata/boards";

Sorry for the long post, I didn't want to cut out the successes in the build just in case they were important.

joshmarinacci commented 10 years ago

Can you tell me what node --version and npm --version report?

corkybeta commented 10 years ago

Well that's weird. node returns no error but no text. I actually can't get node to speak atall when it's definitely installed, so I'll have to fix that and tell you what happens. npm version is 1.4.9

wilsonmfg commented 10 years ago

you probably you have ax25-node overriding nodejs. remove the "node" package and reinstall the nodejs package and that should fix it.

corkybeta commented 10 years ago

There we go. You've since updated the readme to include that node doesn't exist on Ubuntu. The package installs but does not do anything. Instead i had to install the ppa then install the package nodejs, then run nodejs --version not node --version. I then ran npm install to get the dependencies and we're working! This is an issue caused by my own misunderstanding based on early versions of the documentation and a dependency issue that has since been fixed

joshmarinacci commented 10 years ago

Great. I'll close out the issue now.