-
Notifications
You must be signed in to change notification settings - Fork 3
Updating Node
Peter Kwan edited this page Oct 7, 2024
·
4 revisions
When Muttlee is updated, it may break in unexpected ways if node.js needs updating. Check that your version is greater than 8.
node --version
To update you can do this on Linux.
npm cache clean -f
Install the node version manager
sudo npm install -g n
Install the latest version of npm.
sudo n latest
At the time of writing, the version installed is v16.10.0
Github will start to complain as packages get outdated.
npm update
# and if things need fixing then this will apply any known fixes.
npm audit fix --force
If the socket.io client and server versions don't match then the client won't be able to establish a connection to the server. The client uses the p5js libraries. Go to the p5js page to download the current p5.dom.min.js and p5.min.js. The socket.io library can be installed by fetching it and then copying the library to the correct place.
cd ~/muttlee
npm install socket.io-client
cp node_modules/socket.io-client/dist/socket.io.min.js public/libraries/