Report this

What is the reason for this report?

Can't install sails.js

Posted on January 4, 2017
Nico

By Nico

Hey,

I’ve setup a new “one-click” droplet with ubuntu and node (tried both that are available at the moment)

For any reason, i am not able to install sails.js - all other npm packages are not problem…

@*:~# sudo npm -g install sails npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated node-uuid@1.4.7: use uuid module instead npm WARN deprecated native-or-bluebird@1.1.2: ‘native-or-bluebird’ is deprecated. Please use ‘any-promise’ instead.

Any idea? I don’t really know what these errors are telling me …

Help would be great !

Best, Nico



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@cshepcook @nuborian @jtittle @Woet Hey everyone, for future reference, the issue is probably pre-production Grunt compilation running on Digital Ocean (which is relatively memory-intensive, depending on the number of assets you have). An easy workaround for this is to prepare (e.g. compile/minify/etc) production assets ahead of time (locally on your machine, before deploying).

For a tip on how to prepare assets ahead of time, check out https://github.com/balderdashy/sails/issues/3577#issuecomment-184786535 (you don’t actually need to name the task “cluster”-- e.g. you might name it “digitalocean” or “preproduction”).

Hope that helps! -mikermcneil

For anyone running into this issue. It seems to be due to running out of memory on the smaller Droplets. I temporarily resized to a 2GB droplet and Sails installed fine. I was monitoring memory usage and about 2/3 of the way through the install it was bumping up on 500MB of ram used. Near the end of the install it exceeded the 512MB of ram on the smallest droplet size.

Thanks for your help - sadly that doesn’t work, too :/

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.