Closed cenoura008 closed 4 years ago
what version of node are you running?
I used the 8 instead the 6 because it's the newest version --> curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
I used the 8 instead the 6 because it's the newest version --> curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
Infact, the latest release is 12 for LTS and 13 for up to date within node. Could you try https://tecadmin.net/install-latest-nodejs-npm-on-ubuntu/ And then get back to me, as some packages may require a later node version.
I used the 8 instead the 6 because it's the newest version --> curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
Infact, the latest release is 12 for LTS and 13 for up to date within node. Could you try https://tecadmin.net/install-latest-nodejs-npm-on-ubuntu/ And then get back to me, as some packages may require a later node version.
I'm still getting the error after doing doing this!
This could be several things. Could you supply the log it generates? Have you tried running sudo.
Here you have the log file 2020-01-28T08_35_24_218Z-debug.log
Other
When I run npm install I'm getting this: root@csgoprice:~/tradebot# npm install
module.js:550 throw err; ^
Error: Cannot find module '/root/tradebot/node_modules/protobufjs/scripts/postinstall' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Function.Module.runMain (module.js:694:10) at startup (bootstrap_node.js:204:16) at bootstrap_node.js:625:3 npm WARN tradebot@1.0.0 No repository field.
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! protobufjs@6.8.8 postinstall:
node scripts/postinstall
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the protobufjs@6.8.8 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-01-27T10_42_54_291Z-debug.log