Comments (4)
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.
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.
Also feel free to submit an issue in the homebrew-core, https://github.com/Homebrew/homebrew-core/issues
from cli.
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)
- [BUG] npm shows spinner while waiting for password
- [BUG] "There appears to be trouble with your network connection. Retrying..."
- [BUG] "There appears to be trouble with your network connection. Retrying..." HOT 2
- [Feature request] Support overriding `main`, `exports` and other package.json fields with `publishConfig` HOT 1
- [BUG] Installing an aliased package with an empty name will install the 'undefined' package HOT 2
- * OS: linux
- [BUG] Unable to install packages w/ brew linked node | macOS | NODE_EXTRA_CA_CERTS defined, behind ZScaler firewall HOT 2
- ### File `EIPS/(milehigh.world)eip-7708.md`
- Should npm init emit type=module? HOT 4
- [BUG] npm install progress bar not showing HOT 4
- npm is unable to authenticate when attempting to run npm install in my project folder HOT 2
- [BUG] npm audit fix --force installs a vulnerable version of puppeteer HOT 3
- [BUG] Get a package with optionnalDependencies from private registry. Get private package with `cpu` and `os` specified.
- Infosys Support Renewal FY25 HOT 1
- [BUG] ETARGET No matching version found after version update; cache clear helps HOT 6
- `npm edit` bug when editor path has a space in it HOT 1
- This problem existed when there was no `[email protected]` published yet. Now I don't know how to reproduce it anymore.
- [BUG] npm install 'my-package' silently drops extra hard links to the same inode in node_modules/my-package HOT 1
- [BUG] <title>i have738 issues help
- [BUG] created package size differs between 10.1.0 vs 10.2.3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.