Page 1 of 1

trying to install CNCjs and failing

Posted: Fri Feb 02, 2018 5:34 pm
by cchisholm
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.

Re: trying to install CNCjs and failing

Posted: Fri Feb 02, 2018 7:37 pm
by fruitoftheloom
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

Re: trying to install CNCjs and failing

Posted: Sat Feb 03, 2018 9:41 am
by DougieLawson
Open an LXTerminal window.
Type
npm install -g cncjs
press [ENTER]
Wait.
Be amazed.
Profit.

Re: trying to install CNCjs and failing

Posted: Sat Feb 03, 2018 3:46 pm
by cchisholm
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

Re: trying to install CNCjs and failing

Posted: Wed Feb 07, 2018 12:28 am
by crchisholm
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.

Re: trying to install CNCjs and failing

Posted: Wed Feb 07, 2018 6:41 am
by fruitoftheloom
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

Re: trying to install CNCjs and failing

Posted: Thu Feb 08, 2018 11:35 pm
by cchisholm
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