Last active
May 26, 2022 19:33
-
-
Save madhu-sagar/570de73ff6949f33d9d40374fe184c7b to your computer and use it in GitHub Desktop.
Setting up quokka with nvm in ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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