You can use npm or yarn to install your dependencies.
We set the
$PATH to include the
node_modules/.bin folder so all
executables installed through npm can be run.
We also automatically cache the
between builds to optimize build performance. You can
read this article to learn more.
You can also use Yarn to install your
dependencies as an alternative to npm. Yarn is pre-installed on the
build VMs. We configure
yarn to write into
is also cached.
meteor npm install -g yarn meteor yarn
Note that we do not officially support or integrate with this module and that it is possible for this to cause resource and build failure issues, as well.
Add the following environment variables to your project configuration:
And include the following command to your deployment pipeline:
\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/deployments/meteor.sh | bash -s
Sometimes Meteor commands will run into Node’s default memory limit resulting in this error:
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory Aborted (core dumped)
If this happens in your build you can increase the memory limit by setting this environment variable for the project: