Npm run Segmentation Error: 11

I am trying to run npm

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 mistake 12 hours ago. I don’t know why this is happening.

+4
source share
5 answers

The recommendation to uninstall node_modulesand re-launch npm installis a good one. However, it’s even better: npm rebuildit will most likely fix the problem and be faster (since it will not actually download all the files, etc.).

+3
source

Yesterday there was a major node.js release, maybe something went wrong. The best way to do this is to update node.js / npm, delete the folder, node_modulesand run npm installto install the dependencies again.

+4

, SASS.

+1

angularjs webpack.

I checked the node version and npm

node -v

v8.11.3

npm -v

5.6.0

I updated npm to the latest.

npm install -g npm@latest

npm -v

6.4.1

Now npm install, npm run build works fine. :)

+1
source

I also ran into the same problem.

For me, this was due to a mismatch in the version of the node. I tried to run a package compatible with v8 host, but my host version was installed on v6.

0
source

Source: https://habr.com/ru/post/1606584/


All Articles