raimohanska / ourboard

An online whiteboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set it up on Ubuntu 20.04?

paarth1995 opened this issue · comments

Hello. I really like the fact that this is an open source app to have our own whiteboard. However, i am trying to set it up on Ubuntu 20.04 and maybe i am missing something but the documentations doesn't seem very clear on how to install it.

The error that i am running into when running yarn install :-

yarn install
yarn install v1.22.15
[1/5] Validating package.json...
error rboard@1.0.0: The engine "node" is incompatible with this module. Expected version "^15". Got "16.11.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

The error that i am running into when running npm install :-

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: rboard-frontend@1.0.0
npm ERR! Found: lonna@0.12.1
npm ERR! node_modules/lonna
npm ERR!   lonna@"^0.12.1" from rboard-frontend@1.0.0
npm ERR!   frontend
npm ERR!     rboard-frontend@1.0.0
npm ERR!     node_modules/rboard-frontend
npm ERR!       workspace frontend from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer lonna@">0.12" from harmaja-router@0.3.2
npm ERR! node_modules/harmaja-router
npm ERR!   harmaja-router@"^0.3.2" from rboard-frontend@1.0.0
npm ERR!   frontend
npm ERR!     rboard-frontend@1.0.0
npm ERR!     node_modules/rboard-frontend
npm ERR!       workspace frontend from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /home/ubuntu/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2021-10-11T22_56_47_487Z-debug.log

Steps that i have done so far.

  1. Installed yarn 1.22.15
  2. Installed Node v16.11.0
  3. git clone https://github.com/raimohanska/ourboard.git
  4. npm init
  5. npm install or even yarn install and i run into the errors above.
  6. Also installed the standalone lonna package using npm.

My OS:

Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.3 LTS
Release:	20.04
Codename:	focal

Docker version 20.10.9, build c2ea9bc
docker-compose version 1.25.0

Any help will be appreciated. Thank you.

Well, yarn is the way to go as that's what we use. In the first error message you can see that ourboard expects Node version 15.x. So, use Node version 15 and you should be fine. Personally I use nvm to manage node versions. There's an .nvmrc file in OurBoard root, so you can just say nvm use and you'll have the right version of Node in use.

Did that help?

Closing this for now. Will appreciate your feedback!