Giter Club home page Giter Club logo

Comments (17)

bickky-sahani avatar bickky-sahani commented on June 20, 2024 5

If you have installed nvm using homebrew, then remove it

brew uninstall nvm

also

rm -rf $NVM_DIR

then install nvm 0.39.1 using the script and then install nvm install 14, it works. I had the same issue and managed to fix that using this version.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

from nvm.

ljharb avatar ljharb commented on June 20, 2024 1

Where's the nvm debug output? The issue template is there for a reason, please fill it out in its entirety.

from nvm.

ljharb avatar ljharb commented on June 20, 2024 1

@raylancordeiro please provide everything the issue template asks for

from nvm.

lucastorress avatar lucastorress commented on June 20, 2024 1

@ljharb if you pay attention, @Vishnu94833 already shared the npm debug logs at the opening of the issue. Do you need more information?

from nvm.

ljharb avatar ljharb commented on June 20, 2024 1

@lucastorress if you pay attention, you’ll notice that those were edited in after i asked, and then the OP didn’t comment to notify me that it was there.

We have a code of conduct and that kind of hostile response won’t be tolerated.

from nvm.

lucastorress avatar lucastorress commented on June 20, 2024 1

@ljharb Don't get me wrong, I also found your response hostile at first, but the idea here is to understand and help.

The problem here on my machine is the same as reported by @Vishnu94833, the same version and the same operating system. This only happens in NodeJS version 14, with command nvm install 14.

I took a look at another issue, which indicates downgrading the version to 0.39.1, as 0.39.7 has this error.

Temporary solution found here: #3148 (comment)

from nvm.

ljharb avatar ljharb commented on June 20, 2024 1

It's not really an option; the python version required to build node is determined by node, and that's the only way to get it to work.

from nvm.

matheustavaresdev avatar matheustavaresdev commented on June 20, 2024 1

Worked flawlessly with v0.39.1 - I've had this same issue with a few other versions too, I guess I'll keep using 0.39.1 for a good while in the future while I still need node v14

from nvm.

ljharb avatar ljharb commented on June 20, 2024 1

You should provide the checksum in the index.tab file :-) then there won't be a warning.

from nvm.

raylancordeiro avatar raylancordeiro commented on June 20, 2024

I have the same problem, can you help?

from nvm.

ljharb avatar ljharb commented on June 20, 2024

What the error message shows is that it's requiring an older version of python than you have on your system. I have no idea why downgrading nvm would have any impact on that.

from nvm.

Vishnu94833 avatar Vishnu94833 commented on June 20, 2024

@ljharb , Thanks for the suggestion. but I want the latest version of Python as another dependency for Kubectl. Downgrading to an older version is clearly mentioned in the logs that I can see. I just wanted to know if there's a fix for my problem.

I forgot to mention you once I edited the template. I thought you'd be notified.

Thanks!

from nvm.

ljharb avatar ljharb commented on June 20, 2024

Lots of things won't work properly if you're on anything but the latest, so 0.39.1 isn't a great choice. Be on 0.39.7, and provide the info requested in the issue template, so I can fix it. I don't know what would be different in those versions that would make node 14 uninstallable, and I can install node 14 just fine on latest nvm.

from nvm.

keeely avatar keeely commented on June 20, 2024

... I want the latest version of Python as another dependency for Kubectl. Downgrading to an older version is clearly mentioned in the logs that I can see. I just wanted to know if there's a fix for my problem.

What if you run brew unlink first to restore the default python from macOS, then install node 14, and at last brew link latest python again?

brew link [email protected], puts 'python3.10' in your path but it doesn't make python3 reference the 3.10 version. I saw a thread from one of the homebrew developers who said they support alternate python versions with e.g.:

export PATH="$(/opt/homebrew/bin/brew --prefix [email protected])/libexec/bin:$PATH"

(different path to brew if you're on Intel)

Doing this meant nvm install 14.20.0 completed without error (dependent on xcode-tools version which I raised in a different rejected bug report), and felt cleaner than using pyenv to achieve the same thing. As a bonus doing that makes also python resolve to python3 which is needed for certain other commands to work.

It would avoid a lot of issues if the node developers simply provided an ARM binary for Darwin on Node 14.20.0, but I guess that's not going to happen now.

Slightly off-topic: Does anyone know how I can create my own version of https://nodejs.org/dist/v14.20.0/ with my own node-v14.20.0-darwin-arm64.tar.gz with and get nvm to use it? It looks like it's signed. Then I'd only have to go through this once, upload the built binary somewhere and not need the above hacks when setting up a new machine.

from nvm.

ljharb avatar ljharb commented on June 20, 2024

@keeely you can host it somewhere and set the nodejs.org mirror env var to point to it, and nvm will look there instead.

from nvm.

keeely avatar keeely commented on June 20, 2024

@keeely you can host it somewhere and set the nodejs.org mirror env var to point to it, and nvm will look there instead.

Thanks! Yes, index.tab is needed, and then just the file in the right directory.

├── index.tab
└── v14.20.0
    └── node-v14.20.0-darwin-arm64.tar.xz

It gives a warning about the missing checksum but then goes on to install it.

$ NVM_NODEJS_ORG_MIRROR=http://localhost:8081 nvm install v14.20.0
Downloading and installing node v14.20.0...
Downloading http://localhost:8081/v14.20.0/node-v14.20.0-darwin-arm64.tar.xz...
######################################################################################################################################################## 100.0%
Computing checksum with sha256sum
Provided checksum to compare to is empty.

from nvm.

modderme123 avatar modderme123 commented on June 20, 2024

In case it's helpful, here's a precompiled binary for node 14.21.3 on M1 https://github.com/modderme123/node14-arm (I compiled this one using nix)

from nvm.

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.