cakebox icon indicating copy to clipboard operation
cakebox copied to clipboard

NPM missing?

Open jadb opened this issue 9 years ago • 6 comments

Are there plans to add NPM out of the box?

jadb avatar Apr 09 '15 03:04 jadb

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.

bravo-kernel avatar Apr 09 '15 07:04 bravo-kernel

Example script to use as described in node docs: https://gist.github.com/isaacs/579814#file-node-and-npm-in-30-seconds-sh

ceeram avatar Apr 09 '15 07:04 ceeram

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

bravo-kernel avatar Apr 09 '15 08:04 bravo-kernel

@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

bravo-kernel avatar Apr 09 '15 09:04 bravo-kernel

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.

jadb avatar Apr 09 '15 10:04 jadb

Valid point, I will add this to the next release and we'll take it from there.

bravo-kernel avatar Apr 09 '15 10:04 bravo-kernel