cakebox
cakebox copied to clipboard
NPM missing?
Are there plans to add NPM out of the box?
Nothing concrete yet but it could well be added to the next box version if it gets enough :+1:
For now you might consider installing/provisioning it yourself using a custom bash script. This way you can ensure your box will always have it installed the way you like it, even when you (re)create new boxes.
Example script to use as described in node docs: https://gist.github.com/isaacs/579814#file-node-and-npm-in-30-seconds-sh
Make sure the bash script exits with exit status 0 or the Vagrant provisioning run wil fail/stop with an error.
Sample scripts catching command exit codes found here: https://github.com/alt3/cakebox/tree/dev/.cakebox/bash
@jadb after doing some research I can see why adding nodejs to the box could be considered added value for sure. I got triggered by the bower instructions provided with bootstrap-ui.
@ceeram came up with a nice suggestion, we might hook it into the box-maintenance shell for now until we release a new box-image
Thanks guys, had already installed it but was more to point out an important package in a developer's toolkit ;)
@bravo-kernel not only bootstrap-ui, asset_compress has some NodeJS filters as well and many applications today need NPM at some point during development at least.
Valid point, I will add this to the next release and we'll take it from there.