Solved NodeBB Setup Error on Amazon Linux
-
Installing NodeBB on Amazon Linux. Using NodeJS 10.8.0 and when doing the installation and running ./nodebb setup it is giving this error...
# ./nodebb setup internal/modules/cjs/loader.js:583 throw err; ^ Error: Cannot find module 'benchpressjs' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) at Function.Module._load (internal/modules/cjs/loader.js:507:25) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/opt/nodebb/install/web.js:13:18) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3)
-
Oops, we didn't not resolve this and moved to CentOS and there was no further issue.
-
@scottalanmiller said in NodeBB Setup Error on Amazon Linux:
Error: Cannot find module 'benchpressjs'
Obviously it looks like benchpressjs is missing. So if I try to install that...
# npm install benchpressjs > [email protected] install /opt/nodebb/node_modules/benchpressjs > cd rust/benchpress-rs && npm install sh: npm: command not found npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! [email protected] install: `cd rust/benchpress-rs && npm install` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] install 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/2018-11-22T23_08_22_254Z-debug.log
-
I love how we get an npm command not found error... while running NPM!
-
@scottalanmiller said in NodeBB Setup Error on Amazon Linux:
I love how we get an npm command not found error... while running NPM!
Are the NPM binaries linked or in /usr/bin?
-
@dbeato said in NodeBB Setup Error on Amazon Linux:
@scottalanmiller said in NodeBB Setup Error on Amazon Linux:
I love how we get an npm command not found error... while running NPM!
Are the NPM binaries linked or in /usr/bin?
# which npm /root/.nvm/versions/node/v8.13.0/bin/npm
-
Oops, we didn't not resolve this and moved to CentOS and there was no further issue.