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 link` does not work correctly with workspaces and `install-strategy=nested`
- [BUG] npm query *:missing only return the first missing dependency HOT 1
- GITHUB-SETTINGS [-KARLITOS88-] WINDOWS SHIMS TEST JUANCARLOSS2 ETHEREUM NETWORK TRANS.HISTORY
- [BUG] While running npm commands, it doesn't show current directory where I am in after the command finish executing HOT 5
- [BUG] [DEP0170] DeprecationWarning for git+ssh:// dependencies#tag
- [BUG] "_postinstall" script unexpectedly runs after install HOT 5
- [BUG] `--dry-run` effectively ceases to work with `loglevel=error` HOT 4
- [BUG] `npm install` results in error UNABLE_TO_GET_ISSUER_CERT_LOCALLY
- [DOCS] Please provide clear documentation on how devDependencies installation will be triggered when installing dependencies through the git protocol.
- [BUG] Unexpected package.json update when using `npm install --package-lock-only` HOT 1
- [BUG] npm ERR! always-auth is not a valid npm option HOT 2
- [BUG] npx appends a package.json to a file path HOT 1
- [BUG] Slow down on npm installs when using custom registry compared to < v10
- [DOCS] Question on `.npmignore` / `files` behavior for git dependencies in latest version HOT 2
- [BUG] `10.5.1` broken on upgrade with `Error: Cannot find module '@npmcli/config/lib/definitions'` HOT 2
- My.Cli.Rex Study.lnd.Remix TheNewFactory@Art&Contents.Red Área.Invest.me
- [BUG] npm diff is not work in other registry HOT 2
- [BUG] 10.4 and later: $npm_package_config_* variables no longer work for arrays HOT 5
- [BUG] npm link needs network connection HOT 3
- [BUG] <title>Could not resolve dependency: npm WARN peer @craco/craco@"^6.0.0" from [email protected] HOT 3
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.