Petar Vasilev
Petar Vasilev

Reputation: 4735

Dependency error installing Sails.js globally

Can't install sails.js on my Ubuntu desktop for some reason. I see the following in the npm log file:

Error: no compatible version found: underscore.string@'~2.2.0rc'

Any help much appreciated

EDIT:

I've removed nodejs, downloaded and installed the latest version along with npm and now it just hangs at the following:

> [email protected] install /usr/local/lib/node_modules/sails/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

EDIT 2:

Actually all I had to is wait 5 minutes to finish installing. That's a long time!!

Upvotes: 0

Views: 1675

Answers (2)

Petar Vasilev
Petar Vasilev

Reputation: 4735

For anyone who might have the same problem as me all I had to do is get the latest nodejs from here and install it.

Upvotes: 0

InternalFX
InternalFX

Reputation: 1485

I'll assume you got nodejs from the chris-lea ppa.

try sudo npm cache clear

Upvotes: 4

Related Questions