cchisholm
Posts: 84
Joined: Sat Mar 07, 2015 4:47 pm

trying to install CNCjs and failing

Fri Feb 02, 2018 5:34 pm

I've had very limited exposure to Linux and now I find that I need help. I am trying to get a Rp2 setup to run CNCjs to control a tinyG and a small CNC i;ve built. Problem is, what I once new seems to left my memory.

I got NodesJs installed (I think - not sure how to make sure it's there and working) and now I need to get CNCjs installed. The instructions ive found seem to rely on npm and that does not seem to have installed with nodesjs. Please ask me what ever questions might make this a bit clearer.

When I ran git clone https:'//github.com/cncjs/cncjs.git, it seeme to do ok (didn't report an error) but now I am lost. I don't know how to run it or even if I have done all I need to do to install it.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: trying to install CNCjs and failing

Fri Feb 02, 2018 7:37 pm

cchisholm wrote:
Fri Feb 02, 2018 5:34 pm
I've had very limited exposure to Linux and now I find that I need help. I am trying to get a Rp2 setup to run CNCjs to control a tinyG and a small CNC i;ve built. Problem is, what I once new seems to left my memory.

I got NodesJs installed (I think - not sure how to make sure it's there and working) and now I need to get CNCjs installed. The instructions ive found seem to rely on npm and that does not seem to have installed with nodesjs. Please ask me what ever questions might make this a bit clearer.

When I ran git clone https:'//github.com/cncjs/cncjs.git, it seeme to do ok (didn't report an error) but now I am lost. I don't know how to run it or even if I have done all I need to do to install it.

https://github.com/cncjs/cncjs
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: trying to install CNCjs and failing

Sat Feb 03, 2018 9:41 am

Open an LXTerminal window.
Type
npm install -g cncjs
press [ENTER]
Wait.
Be amazed.
Profit.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

cchisholm
Posts: 84
Joined: Sat Mar 07, 2015 4:47 pm

Re: trying to install CNCjs and failing

Sat Feb 03, 2018 3:46 pm

Yes, I have tried that. Several times in fact. I've attached the screen output from the last effort.

Code: Select all

pi@PCBMill:~ $ npm install -g cncjs
npm WARN peerDependencies The peer dependency react@^16.0.0 included from react-grid-system will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
 
> serialport@6.0.4 install /home/pi/.nvm/versions/node/v4.8.7/lib/node_modules/cncjs/node_modules/serialport
> prebuild-install || node-gyp rebuild

prebuild-install info begin Prebuild-install version 2.5.0
prebuild-install info looking for local prebuild @ prebuilds/serialport-v6.0.4-node-v46-linux-arm.tar.gz
prebuild-install info looking for cached prebuild @ /home/pi/.npm/_prebuilds/https-github.com-

EmergingTechnologyAdvisors-node-serialport-releases-download-v6.0.4-serialport-v6.0.4-node-v46-linux-arm.tar.gz
prebuild-install http request GET https://github.com/EmergingTechnologyAdvisors/node-

serialport/releases/download/v6.0.4/serialport-v6.0.4-node-v46-linux-arm.tar.gz
prebuild-install http 404 https://github.com/EmergingTechnologyAdvisors/node-

serialport/releases/download/v6.0.4/serialport-v6.0.4-node-v46-linux-arm.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=4.8.7 runtime=node arch=arm platform=linux)
make: Entering directory '/home/pi/.nvm/versions/node/v4.8.7/lib/node_modules/cncjs/node_modules/serialport/build'
  CXX(target) Release/obj.target/serialport/src/serialport.o
  CXX(target) Release/obj.target/serialport/src/serialport_unix.o
  CXX(target) Release/obj.target/serialport/src/poller.o
  SOLINK_MODULE(target) Release/obj.target/serialport.node
  COPY Release/serialport.node
make: Leaving directory '/home/pi/.nvm/versions/node/v4.8.7/lib/node_modules/cncjs/node_modules/serialport/build'
/home/pi/.nvm/versions/node/v4.8.7/bin/cnc -> /home/pi/.nvm/versions/node/v4.8.7/lib/node_modules/cncjs/bin/cnc
/home/pi/.nvm/versions/node/v4.8.7/bin/cncjs -> /home/pi/.nvm/versions/node/v4.8.7/lib/node_modules/cncjs/bin/cnc
/home/pi/.nvm/versions/node/v4.8.7/bin/cncjs-server -> /home/pi/.nvm/versions/node/v4.8.7/lib/node_modules/cncjs/bin/cnc
npm ERR! Linux 4.4.34-v7+
npm ERR! argv "/home/pi/.nvm/versions/node/v4.8.7/bin/node" "/home/pi/.nvm/versions/node/v4.8.7/bin/npm" "install" "-g" 

"cncjs"
npm ERR! node v4.8.7
npm ERR! npm  v2.15.11
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package react@15.6.2 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @trendmicro/react-anchor@0.5.6 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-breadcrumbs@0.5.5 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-buttons@1.3.0 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-dropdown@1.1.0 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-iframe@0.3.1 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-interpolate@0.5.5 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-modal@2.0.2 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-navs@0.11.0 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-notifications@1.0.0 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-paginations@0.6.1 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-popover@0.2.3 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-table@0.9.0 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-toggle-switch@0.5.7 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-tooltip@0.5.0 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer @trendmicro/react-validation@0.1.0 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer react-bootstrap@0.32.1 wants react@^0.14.9 || >=15.3.0
npm ERR! peerinvalid Peer react-dom@15.6.2 wants react@^15.6.2
npm ERR! peerinvalid Peer react-dropzone@4.2.7 wants react@>=0.14.0
npm ERR! peerinvalid Peer react-facebook-loading@0.6.2 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer react-grid-system@3.1.2 wants react@^16.0.0
npm ERR! peerinvalid Peer react-icon-base@2.1.2 wants react@*
npm ERR! peerinvalid Peer react-infinite-tree@0.7.1 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer react-redux@5.0.6 wants react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0
npm ERR! peerinvalid Peer react-repeatable@1.1.0 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer react-router@4.2.0 wants react@>=15
npm ERR! peerinvalid Peer react-router-dom@4.2.2 wants react@>=15
npm ERR! peerinvalid Peer react-router-redux@5.0.0-alpha.9 wants react@>=15
npm ERR! peerinvalid Peer react-select@1.2.1 wants react@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0
npm ERR! peerinvalid Peer react-sortablejs@1.3.6 wants react@^0.14.0 || >=15.0.0
npm ERR! peerinvalid Peer react-tiny-virtual-list@2.1.4 wants react@15.x || 16.x
npm ERR! peerinvalid Peer react-toggle@4.0.2 wants react@^15.3.0 || ^16.0.0
npm ERR! peerinvalid Peer styled-components@3.1.5 wants react@>= 0.14.0 < 17.0.0-0

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/npm-debug.log
pi@PCBMill:~ $ cncjs
module.js:327
    throw err;
    ^

Error: Cannot find module '../dist/cnc/cnc'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/pi/.nvm/versions/node/v4.8.7/lib/node_modules/cncjs/bin/cnc:10:11)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
pi@PCBMill:~ $ cnc -h
module.js:327
    throw err;
    ^

Error: Cannot find module '../dist/cnc/cnc'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/pi/.nvm/versions/node/v4.8.7/lib/node_modules/cncjs/bin/cnc:10:11)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
pi@PCBMill:~ $ cnc 
module.js:327
    throw err;
    ^

Error: Cannot find module '../dist/cnc/cnc'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/pi/.nvm/versions/node/v4.8.7/lib/node_modules/cncjs/bin/cnc:10:11)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
pi@PCBMill:~ $
Seems that the first thing that probably indicates an error are the lines....

Code: Select all

"cncjs"
npm ERR! node v4.8.7
npm ERR! npm  v2.15.11
npm ERR! code EPEERINVALID
Is that telling me that npm and nodes are incompatable versions?
Also the lines beginning with ...

Code: Select all

Error: Cannot find module '../dist/cnc/cnc'
Is there something else that I should have loaded?

Any direction would be much appreciated.
Charlie

crchisholm
Posts: 7
Joined: Sun May 04, 2014 3:14 pm

Re: trying to install CNCjs and failing

Wed Feb 07, 2018 12:28 am

Are my questions to vague, too difficult, or not appropriate for this forum? I’m pulling my hair out and I don’t know how to get a response.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: trying to install CNCjs and failing

Wed Feb 07, 2018 6:41 am

crchisholm wrote:
Wed Feb 07, 2018 12:28 am
Are my questions to vague, too difficult, or not appropriate for this forum? I’m pulling my hair out and I don’t know how to get a response.

Maybe it is prudent to start again with a fresh install of Raspbian Stretch ??

https://github.com/cncjs/cncjs/wiki/Set ... reparation
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

cchisholm
Posts: 84
Joined: Sat Mar 07, 2015 4:47 pm

Re: trying to install CNCjs and failing

Thu Feb 08, 2018 11:35 pm

Maybe it is prudent to start again with a fresh install of Raspbian Stretch ??

https://github.com/cncjs/cncjs/wiki/Set ... reparation
I believe you are right. I don't know anything about "stretch", so I will probobly start with NOOBs as I usually do. I did download stretch as well, but unless I will be missing out on something, I will probably stick with what I have a bit of experience with.

Thank you for making me re-think this. I had thought about starting over but it took someone else suggesting it to push me over the edge.

Charlie

Return to “Beginners”