Coder Social home page Coder Social logo

Build local instance about flu_frequencies HOT 8 CLOSED

ArtPoon avatar ArtPoon commented on May 29, 2024
Build local instance

from flu_frequencies.

Comments (8)

ArtPoon avatar ArtPoon commented on May 29, 2024

Running out of ideas. Building a more recent version of node.js (v18.16.0) than what's provided by apt (v10.19.0). Some installation documentation would be quite lovely.

from flu_frequencies.

ArtPoon avatar ArtPoon commented on May 29, 2024

Ran npm install in web folder, since it contains a package.json file. Console spammed with messages like this:

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":"^12.20.0 || ^14.13.1 || >=16.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})

I'm guessing the version of Node.js supplied by apt is too ancient. Looking into using nvm to install a newer version alongside the existing one.

from flu_frequencies.

ArtPoon avatar ArtPoon commented on May 29, 2024
  • Ran install script for nvm and restarted terminal
  • nvm install 18.14.0
  • which node and which npm now point to folder within /home/art/.nvm

from flu_frequencies.

ArtPoon avatar ArtPoon commented on May 29, 2024
  • npm install ran much more smoothly with newer version.
  • package.json has no main defined, I have no idea how to start this app

from flu_frequencies.

ArtPoon avatar ArtPoon commented on May 29, 2024

Got app up and running with cp .env.example .env and yarn dev (thanks @rneher).
I'm going to erase my local copy of the repo and start all over again, and write some installation docs.

from flu_frequencies.

ArtPoon avatar ArtPoon commented on May 29, 2024

Resetting system:

rm -rf flu_frequencies/
sudo npm uninstall --global yarn
sudo apt remove npm
rm -rf .npm
rm -rf .nvm

from flu_frequencies.

ArtPoon avatar ArtPoon commented on May 29, 2024

Running into new problems with second install attempt:

art@Kestrel:~/git/flu_frequencies/web$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"18.2.0" from the root project
npm ERR!   peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @react-spring/[email protected]
npm ERR!   node_modules/@react-spring/konva
npm ERR!     @react-spring/konva@"9.6.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.8.x" from [email protected]
npm ERR! node_modules/react-konva
npm ERR!   peer react-konva@"^16.8.0 || ^17.0.0" from @react-spring/[email protected]
npm ERR!   node_modules/@react-spring/konva
npm ERR!     @react-spring/konva@"9.6.1" 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.

from flu_frequencies.

ArtPoon avatar ArtPoon commented on May 29, 2024

Maybe v18.14.0 is too new?

art@Kestrel:~/git/flu_frequencies/web$ npm install --legacy-peer-deps
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '14.x || 16.x || 18.x', npm: '8.x' },
npm WARN EBADENGINE   current: { node: 'v18.14.0', npm: '9.3.1' }
npm WARN EBADENGINE }

from flu_frequencies.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.