Giter VIP home page Giter VIP logo

Comments (6)

alexanderson1993 avatar alexanderson1993 commented on September 22, 2024

See if you can run it with Yarn 1 and Node 12, and let me know how it goes. On an M1, you'll have to run Node 12 in Rosetta, which should happen automatically if you've activated Rosetta already.

from thorium.

Darokrithia avatar Darokrithia commented on September 22, 2024

To be totally honest with you, I don't exactly know what that means. Is yarn 1 a version of yarn (same with node 12)? I'll look into backdating them.

from thorium.

alexanderson1993 avatar alexanderson1993 commented on September 22, 2024

Yep. Just older versions. Thorium Classic hasn't been updated to use newer versions.

Installation instructions for Yarn 1 here. https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable

I like to use Volta, which lets me manage versions of multiple tools, including Node and Yarn. https://volta.sh

from thorium.

Darokrithia avatar Darokrithia commented on September 22, 2024

I installed volta (and n) and am having a lot of difficulty still. I think some of the issue is that node is also installed as a dependency of other brew packages (such as jupyter). I unlinked node from homebrew, which let me properly switch node's version away from 20.5.1 to 12.22.12 (according to node -v). (also yarn version 1.22). This threw a different error when running yarn install

/opt/homebrew/lib/node_modules/corepack/dist/lib/corepack.cjs:5364
        return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
                                           ^

SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/opt/homebrew/lib/node_modules/corepack/dist/yarn.js:2:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

Not sure what this means and if its better or worse than before haha

from thorium.

Darokrithia avatar Darokrithia commented on September 22, 2024

I also tried volta run yarn but this gives a new error:

[2/4] 🚚  Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=18". Got "14.21.3"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

FWIW, volta list gives the following output:

⚡️ Currently active tools:

    Node: v14.21.3 (current @ ~/thorium/package.json)
    Yarn: v1.22.19 (default)
    Tool binaries available:
        n (default)

I ran volta install node@12, but this returns

success: installed and set [email protected] (with [email protected]) as default
   note: you are using [email protected] in the current project

from thorium.

Darokrithia avatar Darokrithia commented on September 22, 2024

I eventually got this working by using volta and doing some git resets. Not sure exactly what was wrong. Thanks for the help. I would add the need to use volta to the documentation if other people have this issue. Most likely it was a one off thing haha

from thorium.

Related Issues (20)

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.