Coder Social home page Coder Social logo

Comments (4)

ljharb avatar ljharb commented on June 25, 2024

node isn’t officially distributed through homebrew, and npm comes with node and generally isn’t installed separately. Have you tried another way to install node?

from cli.

chenrui333 avatar chenrui333 commented on June 25, 2024

I have installed NPM and Node with homebrew, and for whatever reason my version of NPM is stuck a 10.3.0. When I run sudo npm i -g npm@latest, it installs the new version /usr/local/lib/node_modules/lib/node_modules/npm, but remains linked to /usr/local/lib/node_modules/npm. Any ideas?

👋 homebrew maintainer in here, I believe this is more of a PATH issue, which you can finding out with which node.

$ brew install -s node
Warning: node 21.7.1 is already installed and up-to-date.
To reinstall 21.7.1, run:
  brew reinstall node
  
$ export PATH="/opt/homebrew/Cellar/node/21.7.1/bin/:$PATH"
$

$ npm -v
npm verb cli /opt/homebrew/Cellar/node/21.7.1/bin/node /opt/homebrew/Cellar/node/21.7.1/bin/npm
npm info using [email protected]
npm info using [email protected]
npm verb title npm
npm verb argv "--version"
npm verb logfile logs-max:10 dir:/Users/rui/.npm/_logs/2024-03-18T20_43_18_699Z-
npm verb logfile /Users/rui/.npm/_logs/2024-03-18T20_43_18_699Z-debug-0.log
10.5.0
npm verb exit 0
npm info ok

from cli.

chenrui333 avatar chenrui333 commented on June 25, 2024

Also feel free to submit an issue in the homebrew-core, https://github.com/Homebrew/homebrew-core/issues

from cli.

milaninfy avatar milaninfy commented on June 25, 2024

Closing as this does not look like npm issue. If this is still a problem please feel free to reopen this issue, or create a new issue w/ steps to reproduce.

from cli.

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.