9

I'm trying to npm run

HOT=1 node ./node_modules/.bin/react-native-webpack-server start --hot

getting this error:

> projectName@0.0.1 hot /Users/user_name/Documents/dev/app
> HOT=1 node ./node_modules/.bin/react-native-webpack-server start --hot

Segmentation fault: 11

there was no such error 12 hours ago. Have no idea why does this happens.

stkvtflw
  • 12,092
  • 26
  • 78
  • 155

6 Answers6

13

The suggestion to delete node_modules and re-run npm install is a good one. Even better, though: npm rebuild will likely fix the problem and be faster (since it won't actually re-download all the files etc.).

Trott
  • 66,479
  • 23
  • 173
  • 212
4

There was a major node.js release yesterday, maybe that's why something went wrong. Best course of action is updating node.js/npm, deleting node_modules folder and running npm install to install dependencies again.

Gökay Gürcan
  • 1,082
  • 1
  • 10
  • 25
2

I also had the same issue now in my angularjs webpack project.

I checked the node version and npm

node -v

v8.11.3

npm -v

5.6.0

I updated the npm to the latest.

npm install -g npm@latest

npm -v

6.4.1

Now npm install, npm run build is working fine now. :)

Raphael
  • 1,738
  • 2
  • 27
  • 47
1

I also got this same error, and was down to a syntax error in one of my SASS files.

DanV
  • 3,193
  • 4
  • 29
  • 43
1

I also faced the same issue.

For me it was due to node version mismatch. I tried running node v8 compatible package, but my node version was set to v6.

keya
  • 2,068
  • 2
  • 18
  • 18
1

rm -r node_modules && npm install