Assertion failed: ((start) <= (end)), function SliceOnto, file ../src/smalloc.cc

Did you just update your node ver­sion and started get­ting the fol­low­ing error?

Assertion failed: ((start) <= (end)), function SliceOnto, file ../src/smalloc.cc

Here, is the solution:

Step I : If you do not have nvm installed, then install nvm using the following:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.27.1/install.sh | bash

or

sh wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.27.1/install.sh | bash

Step II : Install the ver­sion 0.12.2 of node and make it the default. So, when­ever you start the new ter­mi­nal ses­sion, it uses the default version.

nvm install 0.12.2
nvm alias default v0.12.2

If this does not help then check out the fol­low­ing issues :

You may also like...