Skip to content

Instantly share code, notes, and snippets.

@madhu-sagar
Last active May 26, 2022 19:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madhu-sagar/570de73ff6949f33d9d40374fe184c7b to your computer and use it in GitHub Desktop.
Save madhu-sagar/570de73ff6949f33d9d40374fe184c7b to your computer and use it in GitHub Desktop.
Setting up quokka with nvm in ubuntu
1) create a new directory in ~/.nvm/versions/node by
cd ~/.nvm/versions/node
mkdir /current
cd ./current
mkdir bin
2) in the bash config file at ~/.bashrc , place the following commands at end
export NVM_SYMLINK_CURRENT=$(nvm which current)
if [ ! -f "$NVM_SYMLINK_CURRENT" ]; then
ln -s $NVM_SYMLINK_CURRENT ~/.nvm/versions/node/current/bin/node
fi
3) in the quokka config file present in ~/.quokka/config.json , add this as an object.. See for example below
{"pro":true,"community":true , "node": "~/.nvm/versions/node/current/bin/node" }
4) run the command below to get the changes made reflected immediately
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment