December 06, 2019, 08:55:03 PM
Welcome, Guest. Please login or register
News: Join us for a FREE Webinar this Thursday at http://webinar.digitalsignage.com

MediaSignage support forum



Author Topic: Debian version 9 on - linux server - npm install - Build Error  (Read 1999 times)

indiaexcite

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Debian version 9 on - linux server - npm install - Build Error
« on: October 27, 2019, 07:53:55 AM »
My Server:
Debian version 9 on - linux server

I have installed the required packages from the provided git repo and angular.js, and did the following steps:

1) Upgraded node to 12.3.0 and npm to 6.12.0 LTS
2) Installed typescript 2.4
3) Installed angular/cli@latest
4) Opened port 4208 from firewall

Now I ran the command npm install and it ran into some errors which are listed below:

----------------------------------------------------------

silly build create-error-class
info linkStuff error

silly build make-error
info linkStuff make-error

silly build plugin-error
info linkStuff plugin-error
silly linkStuff plugin-error

 silly build silent-error
info linkStuff silent-error
 silly linkStuff silent-error

silly build error-stack-parser
info linkStuff error-stack-parser
 silly linkStuff error-stack-parser
                                            ......

error code ELIFECYCLE
error errno 134
error studioweb  postinstall: `npm run dev`
error Exit status 134
 error Failed at the studioweb  postinstall script.

----------------------------------------------------------------------------

Any suggestions required to sort the errors please.

Thank you.

Regards,
Venkat C
« Last Edit: October 27, 2019, 08:38:25 AM by indiaexcite »

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5010
  • Karma: +35/-8
    • View Profile
Re: Debian version 9 on - linux server - npm install - Build Error
« Reply #1 on: October 28, 2019, 08:48:23 AM »
please use:
- node 6.x
- npm 5.4.2
- typescript 2.4

best regards

-ADMIN

indiaexcite

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Debian version 9 on - linux server - npm install - Build Error
« Reply #2 on: October 29, 2019, 06:28:10 AM »
Dear Admin,

Thank you for your response.

installed:

Node: 12.3.0
NPM: 6.12.0
Typescript: 2.4.0

Installed the provided packages and opened the port, there is a problem when running npm install and it shows some application errors like this for example:
--------------------------------
gulp[4799]: ../src/node_contextify.cc:649:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[1]->IsString()' failed.
 1: 0x9d8da0 node::Abort() [gulp]
 2: 0x9d8e27  [gulp]
 3: 0x9cc94f node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [gulp]
 4: 0xba4edb  [gulp]
 5: 0xba5a62 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [gulp]
 6: 0x13726d9  [gulp]

------------------------------------

If you require I shall provide error logs further on this issue to identify what is causing it not to run.

Thank you very much for your support.

Kindly guide me in this Regard.

Thank you.

With warm regards,
Venkat C

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5010
  • Karma: +35/-8
    • View Profile
Re: Debian version 9 on - linux server - npm install - Build Error
« Reply #3 on: October 29, 2019, 08:48:25 AM »
as mentioned, please use the versions indicated as the source code was written with said versions of nodeJS.

otherwise, you will need to rewrite the source for nodeJS 12

best regards

-ADMIN

indiaexcite

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Debian version 9 on - linux server - npm install - Build Error
« Reply #4 on: October 31, 2019, 01:12:11 AM »
as mentioned, please use the versions indicated as the source code was written with said versions of nodeJS.

otherwise, you will need to rewrite the source for nodeJS 12

best regards

-ADMIN

As advised the apt versions are installed.
No errors.

Port opened.

Now how do I install studiolite and run from my server!?

Kindly advice.

Regards,
Venkat Chinniah

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5010
  • Karma: +35/-8
    • View Profile
Re: Debian version 9 on - linux server - npm install - Build Error
« Reply #5 on: October 31, 2019, 11:47:56 AM »
issue the command: npm run release_jit

a folder called dist is generated - its content is the deployment files for your server

best regards

-ADMIN

indiaexcite

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Debian version 9 on - linux server - npm install - Build Error
« Reply #6 on: November 02, 2019, 11:26:55 PM »
Dear Admin,

Thank you for you support.

I changed node version to 6.9.0  and angular/cli to 1.0.0 and gulp on 3.9.1.

​Now it is showing the following error
--------------------------
The "@angular/compiler-cli" package was not properly installed.
-------------------------
Could you please confirm which package of compiler this application needs?

Sorry if not clearly understood your previous post.

With warm regards,
Venkat C

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5010
  • Karma: +35/-8
    • View Profile
Re: Debian version 9 on - linux server - npm install - Build Error
« Reply #7 on: November 05, 2019, 12:55:33 AM »
which source code are you working on? are you working on studio dashboard, studio lite or msgetstarted?

best regards

-ADMIN

indiaexcite

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Debian version 9 on - linux server - npm install - Build Error
« Reply #8 on: November 05, 2019, 09:47:58 AM »
born2net/studio-lite

git@github.com:born2net/studio-lite.git

indiaexcite

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Debian version 9 on - linux server - npm install - Build Error
« Reply #9 on: November 05, 2019, 09:58:48 AM »
Dear Admin,

git@github.com:born2net/studio-lite.git

I am using the above code.

Thank you very much for your support.

With warm regards,
Venkat C

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5010
  • Karma: +35/-8
    • View Profile
Re: Debian version 9 on - linux server - npm install - Build Error
« Reply #10 on: November 05, 2019, 10:52:53 AM »
note the following installation instructions:

Installation:

StudioLite can be downloaded directly from GitHub With git you will be able to easily update to the latest version of StudioLite as well as take advantage Angular CLI which is included in the bundle

currently the application should run under:

    typescript 2.4
    node 6.x

to install and host:

npm install -g npm (this will ensure npm 5.4.2 >)

Code: [Select]
git clone https://github.com/born2net/studio-lite.git
cd studio-lite
npm install -g @angular/cli@latest
npm install
open browser to: http://localhost:4208/

also note that the dependencies and their version are listed in the dependencies section of package.json. i would suggest that you consult your developer who has nodejs/angular framework development experience

best regards

-ADMIN

 

Carbonate design by Bloc
variant: carbon
SMF 2.0.12 | SMF © 2016, Simple Machines