Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nerve frontend build/serve failing #12

Open
pi-mad opened this issue Oct 14, 2018 · 6 comments
Open

Nerve frontend build/serve failing #12

pi-mad opened this issue Oct 14, 2018 · 6 comments

Comments

@pi-mad
Copy link

pi-mad commented Oct 14, 2018

Hi,

Im trying to install the frontend but when I prompt 'npm start' its comes back with loads of errors, debug log file included.

Could you please have a look as I would really like to get this working.

Regards

Matthew Carney

npm-debug.log

@Jamie0
Copy link
Member

Jamie0 commented Oct 14, 2018

Hey Matthew,

How did you install node/npm/etc? I'm guessing you've run npm install in the frontend's root directory. What version of Gulp are you using?

If you haven't already, try npm install -g gulp to install gulp globally onto your path. You're using a slightly older version of npm (the version we're using is 5.0), can you update that?

@pi-mad
Copy link
Author

pi-mad commented Oct 15, 2018

Hi,

I have installed npm version 6.4.1, installed gulp and node and I have got the frontend to work upto the point of npm test and then I get errors, I have attached a txt file with the errors I am getting.

Regards

Matthew Carney

Nerve Frontend.txt

@pi-mad
Copy link
Author

pi-mad commented Jan 30, 2019

Hey Jamie,

I have come back to trying to install nerve again as I am now doing it on what will be the main running machine for it and it have managed to install npm version - 5.6.0 with node version - 8.11.1, reason being as npm version 5.0.0 isn't stable and wouldn't let me run any commands for version 8.11.1 is the next stable LTS, but im still having problems running the commands for the frontend, i ran npm install -g gulp and it installed version - 2.0.1 but im still getting errors --

Log File - 30-01-2019.txt

I hope you will be able to help as we could really do with getting this working, would help us out so much.

Many Thanks

@Jamie0
Copy link
Member

Jamie0 commented Jan 31, 2019

Hi Matthew,

You should realistically be fine using the pre-built frontend files, there isn't anything really site-specific in the frontend code (except the logo, probably, but you should be fine to just drop in a new PNG). On my laptop, I'm currently running node v11.1.0, npm version 6.4.1, and gulp version 3.9.1, and I can start everything just fine.

If you run gulp serve directly in the frontend directory, what happens?

To use the pre-built files, you don't need to start Nerve with node at all, you should be starting it with Ruby.

I've attached the init scripts we use to run Nerve (using upstart and CentOS 6.9), but I recommend running it inside Docker to avoid all the nasty dependencies you need.

nerve-worker.conf.txt
nerve.conf.txt

I'll update the docker-compose script as soon as I get a chance so you can deploy it on a standard Docker install easily.

@Jamie0 Jamie0 changed the title Frontend Nerve frontend build/serve failing Jan 31, 2019
@pi-mad
Copy link
Author

pi-mad commented Feb 2, 2019

Hi Jamie,

I will give it a try, I'm going to reinstall it as iv been installing it on Ubuntu 18.04 Server and I didn't think about CentOS so i am installing it on that but it will be CentOS 7.

I will come back to you once i have finished installing again.

Many Thanks

@pi-mad
Copy link
Author

pi-mad commented Mar 3, 2019

Hi Jamie,

When I run gulp serve I get the following problem

[nerve@nerve frontend]$ gulp serve
gulp serve[70320]: ../src/node_contextify.cc:631:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfov8::Value&): Assertion `args[1]->IsString()' failed.
1: 0x953b10 node::Abort() [gulp serve]
2: 0x953b97 [gulp serve]
3: 0x94faa7 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfov8::Value const&) [gulp serve]
4: 0xbbae9f [gulp serve]
5: 0xbbce62 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [gulp serve]
6: 0x2940001cfc5d
Aborted

Many Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants