I couldn't get the current version of NodeJS to install on Raspberry Pi. I kept getting errors like this during installation:
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node)
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v12.2.0` to unset it.
I manually installed an older version of Node and npm using a tarball download. Note that I had to use the armv6l
, not armv7
, to prevent the error.