Microsite is an ESM node package which requires a Node environment that supports ESM.
We officially support the latest version of node
v12 LTS (Erbium) and node
v14 LTS (Fermium).
There are many different tools to manage node
versions. While nvm
is among the most popular, we really love the speed and simplicity of volta
and highly recommend it!
The following guides assume that you have installed volta
or installed nvm
.
Volta Inside of your Microsite project, run the following command:
volta pin node@lts
NVM Inside of your Microsite project, run the following commands:
echo "lts/*" > .nvmrc
nvm use