You have the Node.js snap package installed. The Node.js snap package is started with the node command. Users can choose from one or more of the currently supported releases and get regular automatic updates directly from NodeSource. Node.js versions 6, 8, 9, 10, 11, 13, 14, 15, 16, 17 and 18 are currently available, with the Snap Store being updated within hours or minutes of a Node.js release.
Users can switch between versions of Node.js at any time without needing to involve additional tools like nvm (Node Version Manager), for example:
sudo snap refresh node --channel=8/stable
Users can also switch from the stable channel to the edge channel with the following command:
sudo snap switch node --edge
Then run node -v to show the currently selected node version.
I googled everywhere but it seems the command above should work.
Out of curiosity, I tried nvm alias default 12.8 instead of nvm alias default 12.8.0 and that solved my problem.
I could guess this is true only if the last digit is 0, otherwise the the full Node.js version should be written.
I faced this problem when I installed a fresh Nuxt.js application and opted to use Eslint which complained about my Node.js version in use, so I had to upgrade and switch to a newer version.
You have the Node.js snap package installed. The Node.js snap package is started with the
node
command. Users can choose from one or more of the currently supported releases and get regular automatic updates directly from NodeSource. Node.js versions 6, 8, 9, 10, 11, 13, 14, 15, 16, 17 and 18 are currently available, with the Snap Store being updated within hours or minutes of a Node.js release.Users can switch between versions of Node.js at any time without needing to involve additional tools like nvm (Node Version Manager), for example:
Users can also switch from the stable channel to the edge channel with the following command:
Then run
node -v
to show the currently selected node version.Node.js LTS schedule
I googled everywhere but it seems the command above should work.
Out of curiosity, I tried
nvm alias default 12.8
instead ofnvm alias default 12.8.0
and that solved my problem.I could guess this is true only if the last digit is 0, otherwise the the full Node.js version should be written.
I faced this problem when I installed a fresh Nuxt.js application and opted to use Eslint which complained about my Node.js version in use, so I had to upgrade and switch to a newer version.