Skip to content

Commit

Permalink
Fix gitpod node/npm version (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
tijno committed Sep 1, 2022
1 parent b0f1e78 commit 4dba578
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM gitpod/workspace-full:latest

RUN bash -c 'NODE_VERSION="14.15.5" \
&& source $HOME/.nvm/nvm.sh && nvm install $NODE_VERSION \
&& nvm use $NODE_VERSION && nvm alias default $NODE_VERSION \
&& npm -g install npm@7'

RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
4 changes: 4 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Use custom node & npm versions in image
image:
file: .gitpod.Dockerfile

# Commands to start on workspace startup
tasks:
- name: open terminial
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ docs should give you everything you need to get started:
- [Setting Up Your Dev Environment](https://docs.deso.org/code/dev-setup)
- [Making Your First Changes](https://docs.deso.org/code/making-your-first-changes)

# Node / NPM versions

This frontend works best with Node v14.15.5 and Npm v7. If you cant use these versions, then try `npm install --force`.

# Start Coding

The quickest way to contribute changes to the BitClout Frontend is the following these steps:
The quickest way to contribute changes to the DeSo Frontend is the following these steps:

1. Open frontend repo in Gitpod

Expand Down

0 comments on commit 4dba578

Please sign in to comment.