npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

cb() not called when initialising expo project

I installed nodejs to allow me to write a mobile app using React Native. I then tried to route prove my system by writing a ‘hello world’ app. To do this I typed:

expo init hello

I got the cb() never called error.

My log is:2019-08-14T02_00_15_153Z-debug.log (2.3 KB)

What am I doing wrong?


Hi @paulathomas! There was a bug in versions of npm before 6.10.2 where files could be left behind with wrong ownership after installing global packages using sudo. Then version 6.10.3 added more information for the error including similar advice to…

The quick fix is:

sudo chown -R $USER ~/.npm

and you should hopefully not have the issue again. (Unless you need to switch back to an older version of node+npm for some testing…)