Closed JohnGrime closed 1 year ago
Your node
version is quite low - I think we test against 16.
I've tried with node
v16 via nvm
and it seems to avoid that error, thanks!
Is anyone interested in me posting a minimal Dockerfile
that allows the Viv
dev install to be built and run? I ran the resultant Docker
image on a local development server, and I could connect to port 3000 on the server and get the Avivator
web interface from my desktop machine so I guess the Dockerfile
is more-or-less functional!
Hmmm, I guess you could post it here. @manzt any thoughts where we could put this? or nowhere?
Hmm. We could pin this issue with the included Dockerfile
if desired, however if someone searches our issues with "Docker" it should still be discoverable.
It's not very common to use Docker for development of JS packages, and my worry would be that we have mixed messaging around a recommended setup for development. Including an engine
field in the root package.json
would likely be sufficient to avoid the issue here. Node v10 has been EOL since March 2021, and Node v14 will be EOL soon. I think it is reasonable that we only support the officially supported Node versions for development.
This makes sense. @JohnGrime you can post the Dockerfile
here if you'd like. Thanks!
I started the app with wsl-ubuntu. The procedure is as follows.
# start wsl
wsl --install -d Ubuntu
# setup ubuntu
sudo apt update -y
sudo apt install nodejs npm -y
sudo npm -g install n -y
sudo n stable -y
sudo apt purge nodejs npm -y
sudo apt autoremove -y
sudo apt install build-essential libffi-dev libssl-dev zlib1g-dev liblzma-dev libbz2-dev \
libreadline-dev libsqlite3-dev libopencv-dev tk-dev git -y
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo '' >> ~/.bashrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
source ~/.bashrc
pyenv install 3.10.8
pyenv global 3.10.8
sudo apt install xserver-xorg-dev libxi-dev libxext-dev -y
curl -fsSL https://get.pnpm.io/install.sh | sh -
# build & run viv
git clone https://github.com/hms-dbmi/viv.git
cd viv
pnpm install
pnpm dev
Hi,
I'm trying to follow the instructions under "Development" to put a dev install onto an Ubuntu 20.04 Server machine for testing, but I'm having some problems.
Machine info:
Fetch/install of the required
pnpm
package manager:Viv repo fetch:
Install via
pnpm
fails with anode
dependency:I then installed
node
with apt. Version info:Second attempt to
pnpm install
:Can anyone let me know what I'm doing wrong here? I'm trying to follow the instructions on the GitHub repo, which specify "The package manager used to install and link dependencies must be pnpm" - so the earlier instructions re. installing dependencies via
npm
("Install" section of the readme) shouldn't be followed?