how can i fix this?
How did you produce this error? Could you paste some code?
@pmq20 i just start my project with "npm start"
@pmq20 or how can i print more detail debug logs?
We need a reduced test case. What dependencies are you using? Can you reduce your code to a certain part that's crashing?
@pmq20 found.
i'm using https://www.npmjs.com/package/sha3 this modules.
and when i load this module, node.js complain "Segmenation Fault"
@breaklee you're most likely experiencing one of these:
In either case, for us to help out or point you to a relevant upstream we need to know which module in question isn't working. Try removing your node_modules directory and recompiling your modules. If you get a build failure, please paste the relevant bits (ie, the file that fails to compile).
Edit: somehow missed your last post. Apologies.
@jbergstroem thanks!
i've not compiled with new v8 version.
thanks for your details!
json In either case, for us to help out or point you to a relevant upstream we need to know which module in question isn't working. Try removing your node_modules directory and recompiling your modules. If you get a build failure, please paste the relevant bits (ie, the file that fails to compile).
Thx, that worked for me!
Yup, removing the existing node_modules fixed the problem for me.
confirmed, removing node_modules and reinstalling fixed the problem for me too.
The same for me! (:
Not me. I added the line
const Curl = require('node-libcurl').Curl;
to my javascript after executing the command:
npm install node-libcurl
Then I try to run a test with:
$ npm test test/feeds/here/data-export.js
I get the following:
[email protected] test /Users/Bar/PycharmProjects/Foo/api-tests
mocha --recursive "test/feeds/here/data-export.js"
Segmentation fault: 11
$
I tried removing the node_modules directory and rebuilding (including re-installing) to no avail.
It works fine without that line.
I got that line from: https://www.npmjs.com/package/node-libcurl
Note that I am trying curl because I can't get zombie to do what I want it to do.
It appears that we are using an older version of node.js (because of non-related requirements).
I had the same problem when I was trying to execute npm install as root. Then I tried without sudo and this worked out for me. I recognize that was a little stupid my case.