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!
@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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.