Installation Fails ./nodebb setup on Ubunu 18.04 Google Cloud
-
When I run ./nodebb setup it runs into following error:
ber of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/thomaspark/bootswatch.git /root/.npm/_cacache/tmp/git-clone-2a6675ab/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-2a6675ab/.git'
npm ERR!npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-03-23T17_30_52_712Z-debug.log
Error installing dependencies!
message: Command failed: npm install --production
stdout: null
stderr: null
/home/samuel_schmid/nodebb/src/cli/package-install.js:52
throw e;
^Error: Command failed: npm install --production
-
Looks like you're using root to run the npm command. It is highly recommended to NOT install or run NodeBB as a privileged user.