npm install - try again

34 views
Skip to first unread message

Mark Volkmann

unread,
Dec 15, 2015, 7:54:58 PM12/15/15
to nod...@googlegroups.com
I often notice that when I pull the latest code on a project and run "npm install" I get various errors. Then if I run "npm install" again, the errors go away. Sometimes I have to run it three times.

How could running it again fix anything? Is there maybe an issue with the order in which the dependencies are getting installed?

--
R. Mark Volkmann
Object Computing, Inc.

Aria Stewart

unread,
Dec 15, 2015, 7:57:11 PM12/15/15
to nod...@googlegroups.com

> On Dec 15, 2015, at 12:33 PM, Mark Volkmann <r.mark....@gmail.com> wrote:
>
> I often notice that when I pull the latest code on a project and run "npm install" I get various errors. Then if I run "npm install" again, the errors go away. Sometimes I have to run it three times.
>
> How could running it again fix anything? Is there maybe an issue with the order in which the dependencies are getting installed?

That sounds like a race condition -- in particular, are you getting an `ENOENT` error?

Upgrading to the latest npm can help a ton. Bugs keep getting squashed!

Aria

Mark Volkmann

unread,
Dec 16, 2015, 8:11:01 PM12/16/15
to nod...@googlegroups.com
You are correct. They are ENOENT errors. I was using npm 3.3.10 with node 4.2.1.

I upgraded to the latest version of npm which is 3.5.2 and the errors disappeared!
Reply all
Reply to author
Forward
0 new messages