MediaSignage support forum
community support => Open source Digital Signage => Topic started by: DS4Egeoisystems on June 13, 2017, 07:45:56 AM
-
Hi,
I want to install the new version of StudioLite on our server.
I run a server with Centos, I have node and npm installed. When I execute the last command "npm install" this is what I get:
-sh-4.2$ npm install
> studioweb@0.1.762 postinstall /var/www/vhosts/localhost.localdomain/httpdocs/test-studio/studio-lite
> npm run dev
> studioweb@0.1.762 dev /var/www/vhosts/localhost.localdomain/httpdocs/test-studio/studio-lite
> npm run x_cssDev && ng serve --port 4208 --aot false
> studioweb@0.1.762 x_cssDev /var/www/vhosts/localhost.localdomain/httpdocs/test-studio/studio-lite
> gulp cssDev
/var/www/vhosts/localhost.localdomain/httpdocs/test-studio/studio-lite/node_modules/require-dir/index.js:93
if (!require.extensions.hasOwnProperty(ext)) {
^
TypeError: require.extensions.hasOwnProperty is not a function
at requireDir (/var/www/vhosts/localhost.localdomain/httpdocs/test-studio/studio-lite/node_modules/require-dir/index.js:93:37)
at Object.<anonymous> (/var/www/vhosts/localhost.localdomain/httpdocs/test-studio/studio-lite/node_modules/gulp-git/index.js:4:18)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/vhosts/localhost.localdomain/httpdocs/test-studio/studio-lite/gulpfile.js:2:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! studioweb@0.1.762 x_cssDev: `gulp cssDev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the studioweb@0.1.762 x_cssDev 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! /var/www/vhosts/localhost.localdomain/.npm/_logs/2017-06-13T14_09_58_634Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! studioweb@0.1.762 dev: `npm run x_cssDev && ng serve --port 4208 --aot false`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the studioweb@0.1.762 dev 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! /var/www/vhosts/localhost.localdomain/.npm/_logs/2017-06-13T14_09_58_653Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! studioweb@0.1.762 postinstall: `npm run dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the studioweb@0.1.762 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! /var/www/vhosts/localhost.localdomain/.npm/_logs/2017-06-13T14_09_58_703Z-debug.log
-sh-4.2$
Also I attach the logs provided by npm:
https://wetransfer.com/downloads/ce5d030f7a50016b986881ea77a56f1b20170613142409/9dfb188085b232767283c4591a2ddb0a20170613142409/30e6be
Can you give me a hint about that is missing from our server?
Best regards,
Bobby.
-
remove the css from the gulp command
-
Hi,
i also have the same problem, and i try to remove CSS from gulp but i still have the same problem.
Any other suggestions?
My OS is Ubuntu 16.04
-
if you are getting the error
/var/www/vhosts/localhost.localdomain/httpdocs/test-studio/studio-lite/node_modules/require-dir/index.js:93
if (!require.extensions.hasOwnProperty(ext)) {
^
the above error message usually appears on nodejs version 8 or later. you can modify the file:
/var/www/vhosts/localhost.localdomain/httpdocs/test-studio/studio-lite/node_modules/require-dir/index.js
and replace the line: if (!require.extensions.hasOwnProperty(ext)) {
with: if (!Object.prototype.hasOwnProperty.call(require.extensions, ext)) {
best regards
-ADMIN
-
Thank you very much , that sorted my problem.
I just have one more q...
How to deploy edited studio-lite... i know that npm-install create instance for editing, and he is running in dev mode...
"dev": "npm run x_cssDev && ng serve --port 4208 --aot false"
is there any command for npm run prod or similiar?
Regards
-
for distribution, run either:
- npm run release_aot
- npm run release_aot_no_sync
- npm run release_jit
either of the 3 will generate the the distribution folder ./dist where all the files you need for distribution will be placed.
note that the script assumes you are running this in unix/linux therefore are using unix commands. if you are running this in windows, you may need to convert the script to use DOS commands
best regards
-ADMIN