grblweb: "npm install" fails

243 views
Skip to first unread message

Bradan

unread,
Feb 8, 2016, 12:37:07 PM2/8/16
to XYZBots Support for GRBLWeb and RepRapWeb
Hello,

I'm trying to execute the "npm install" command as suggested on the github readme, but it fails:

$ npm install
grblweb@ /home/username/grblweb
+-- as...@0.9.0  extraneous
+-- bind...@1.2.1  extraneous
+-- core-u...@1.0.2  extraneous
+-- inhe...@2.0.1  extraneous
+-- n...@1.3.0  extraneous
+-- node-...@0.7.7 
| +-- col...@1.1.2 
| +-- mi...@1.3.4 
| `-- opti...@0.6.1 
|   +-- mini...@0.0.10 
|   `-- word...@0.0.3 
+-- s...@0.1.7  extraneous
+-- sock...@1.0.6 
| +-- de...@0.7.4 
| +-- engi...@1.3.1 
| | +-- base...@0.1.0 
| | +-- de...@0.6.0 
| | +-- engine.i...@1.0.6 
| | | +-- af...@0.8.1 
| | | +-- arraybuf...@0.0.6 
| | | +-- base64-ar...@0.1.2 
| | | +-- bl...@0.0.2 
| | | `-- ut...@2.0.0 
| | `-- w...@0.4.31 
| |   +-- comm...@0.6.1 
| |   +-- n...@0.3.2 
| |   +-- opt...@0.0.6 
| |   `-- tiny...@0.0.1 
| +-- has-bin...@0.1.1 
| | `-- isa...@0.0.1 
| +-- socket.i...@0.2.0 
| | `-- socket.i...@2.1.2 
| +-- socket.i...@1.0.6 
| | +-- compone...@1.0.0 
| | +-- componen...@1.1.2 
| | +-- engine.i...@1.3.1 
| | | +-- componen...@0.0.3 
| | | +-- has-...@1.0.3 
| | | | `-- glo...@2.0.1 
| | | +-- pars...@0.0.1 
| | | +-- par...@0.0.2 
| | | `-- xmlhttp...@1.5.0 
| | +-- ind...@0.0.1 
| | +-- object-c...@0.0.3 
| | +-- pars...@0.0.2 
| | | `-- better...@1.0.2 
| | |   `-- call...@1.0.0 
| | `-- to-a...@0.1.3 
| `-- socket.i...@2.2.0 
|   +-- emi...@1.0.1 
|   `-- js...@3.2.6 
`-- string_...@0.10.31  extraneous

npm WARN EPACKAGEJSON grblweb@ No repository field.
npm WARN EPACKAGEJSON grblweb@ No license field.
npm WARN EBUNDLEOVERRIDE Replacing bundled serialport > node-pre-gyp with new installed version
npm ERR! Linux 4.1.17-1-ARCH
npm ERR! argv "/home/username/.nvm/versions/node/v5.5.0/bin/node" "/home/username/.nvm/versions/node/v5.5.0/bin/npm" "install"
npm ERR! node v5.5.0
npm ERR! npm  v3.3.12
npm ERR! path /home/username/grblweb/node_modules/serialport/node_modules/node-pre-gyp/node_modules/mkdirp/bin/cmd.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/home/username/grblweb/node_modules/serialport/node_modules/node-pre-gyp/node_modules/mkdirp/bin/cmd.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /home/username/grblweb/npm-debug.log

And I am no nodejs developer, so could someone tell me whats wrong here? I see the serial port package has some problems, but why? Can I fix this somehow?

I've first thought that would be an issue and created an issue on github:

But andrewhodel told me I need to go here, because my problem hasn't gone away, yet. I've installed nodejs by using nvm. He/she also said that node js 5.5.0 is very old, but I couldn't find a newer version, yet. Could you point me towards a newer version? I've installed nodejs by typing "nvm install stable" which should be the newest stable release, shouldn't it?

Kind regards,
Bradan
npm-debug.log

Andrew Hodel

unread,
Feb 8, 2016, 12:56:32 PM2/8/16
to Bradan, XYZBots Support for GRBLWeb and RepRapWeb
Do an internet search for building nodejs from source.

Build the latest version.


Andrew

--
You received this message because you are subscribed to the Google Groups "XYZBots Support for GRBLWeb and RepRapWeb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xyzbots-suppo...@googlegroups.com.
To post to this group, send email to xyzbots...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xyzbots-support/3e90f0f5-6698-470b-a47d-6f3a9d9ae7fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Hodel

unread,
Feb 9, 2016, 12:20:26 PM2/9/16
to Bradan, XYZBots Support for GRBLWeb and RepRapWeb
Actually I take that back, I hadn't realized node somehow switched
from .12 to 4.0+ overnight... I guess the electron gods were supposed
to tell me that. It's the largest version jump in history!

Either way, maybe the trouble is that node-serialport 1.4.x doesn't
work with the newer 4+ versions of node.

Try this:

```
cd grblweb
sed s/1.4.x/2.0.x/ package.json > tmp
mv tmp package.json
rm -rf node_modules
npm install
```

Please report back if it works, if it does I'll update the repo.


Andrew
>> <https://groups.google.com/d/msgid/xyzbots-support/3e90f0f5-6698-470b-a47d-6f3a9d9ae7fd%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .

Bradan

unread,
Feb 9, 2016, 1:13:48 PM2/9/16
to XYZBots Support for GRBLWeb and RepRapWeb, brada...@gmail.com
Yes, now it works. Thank you very much.
Reply all
Reply to author
Forward
0 new messages