Hello,
The installation was with the root privilege, but when i run NODE_ENV=production npm start it's give me the error :
You are attempting to run Meteor as the 'root' superuser. If you are developing, this is almost certainly *not* what you want to do and will likely result in incorrect file permissions.
However, if you are running this command in a build process (CI, etc.), or you are absolutely sure you know what you are doing, set the METEOR_ALLOW_SUPERUSER environment variable or pass
--allow-superuser to proceed.
Even with METEOR_ALLOW_SUPERUSER or --allow-superuser, permissions in your app directory will be incorrect if you ever attempt to perform any Meteor tasks as a normal user. If you need to
fix your permissions, run the following command from the root of your project:
sudo chown -Rh <username> .meteor/local
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bbb-html5-client@ start:prod: `meteor reset && ROOT_URL=http://127.0.0.1/html5client NODE_ENV=production meteor --production`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bbb-html5-client@ start:prod 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! /home/mekki/.npm/_logs/2020-04-05T08_55_20_991Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bbb-html5-client@ start: `if test "$NODE_ENV" = "production" ; then npm run start:prod; else npm run start:dev; fi`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bbb-html5-client@ start 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! /home/mekki/.npm/_logs/2020-04-05T08_55_21_023Z-debug.log
and when i run it with non root privilege i got the error :
/home/mekki/.meteor/packages/meteor-tool/.1.10.1.k3wg3l.4aco++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/cli/dev-bundle.js:120
throw e;
^
Error: EACCES: permission denied, stat '/home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/dev_bundle'
at Object.statSync (fs.js:932:3)
at statOrNull (/home/xxx/.meteor/packages/meteor-tool/.1.10.1.k3wg3l.4aco++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/cli/dev-bundle.js:117:21)
at getDevBundleDir (/home/xxx/.meteor/packages/meteor-tool/.1.10.1.k3wg3l.4aco++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/cli/dev-bundle.js:37:25)
at Object.<anonymous> (/home/xxx/.meteor/packages/meteor-tool/.1.10.1.k3wg3l.4aco++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/cli/dev-bundle.js:177:20)
at Object.<anonymous> (/home/xxx/.meteor/packages/meteor-tool/.1.10.1.k3wg3l.4aco++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/cli/dev-bundle.js:180:3)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19) {
errno: -13,
syscall: 'stat',
code: 'EACCES',
path: '/home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/dev_bundle'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bbb-html5-client@ start:prod: `meteor reset && ROOT_URL=http://127.0.0.1/html5client NODE_ENV=production meteor --production`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bbb-html5-client@ start:prod 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! /home/xxx/.npm/_logs/2020-04-05T08_55_33_148Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bbb-html5-client@ start: `if test "$NODE_ENV" = "production" ; then npm run start:prod; else npm run start:dev; fi`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bbb-html5-client@ start 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! /home/xxx/.npm/_logs/2020-04-05T08_55_33_171Z-debug.log
Can someone help me please?
Best Regards.