Install Nodejs within your Chassis box! The PHPUnit extension automatically sets up your Chassis instance with the phpunit
executable, for use running PHP unit tests.
To add the phpunit extension to a Chassis box, include chassis/nodejs
in the extensions
list within your config.local.yaml
file:
extensions:
- chassis/nodejs
Then run vagrant provision
to instruct Chassis to download and install the new extension.
Ensure you have a Chassis instance set up locally already.
# In your Chassis dir:
cd extensions
# Grab the extension
git clone --recursive https://github.com/Chassis/nodejs.git nodejs
# Reprovision
cd ..
vagrant provision
To specify a version of Nodejs to install, add the major version to a Chassis config file:
nodejs:
version: 16