Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gitpod node/npm version #598

Merged
merged 3 commits into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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