Return to site

Npm for mac

broken image
broken image

(/usr/local/lib/node_modules/npm/bin/npm-cli.js:2:1)Īt Module._compile (node:internal/modules/cjs/loader:1108:14)Īt Object.Module._extensions.js (node:internal/modules/cjs/loader:1137:10)Īt Module.load (node:internal/modules/cjs/loader:973:32)Īt Function.Module._load (node:internal/modules/cjs/loader:813:14)Īt Function. usr/local/lib/node_modules/npm/bin/npm-cli.jsĪt Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)Īt Function.Module._load (node:internal/modules/cjs/loader:769:27)Īt Module.require (node:internal/modules/cjs/loader:997:19)Īt require (node:internal/modules/cjs/helpers:92:18)Īt Object. $ npm installĮrror: Cannot find module './lib/cli.js' There are times when You get an ugly EACCES error message from NPM when You try to install an NPM package globally on Your Mac by running npm install -g <.

broken image

You can use nvm to manage different types of nodejs on your mac or linux machine. Note this did not happen on an AWS-linux instance. Installing different versions of Nodejs on Mac OS or Ubuntu When you are working on different nodejs based projects it is good idea to work with multiple nodejs versions. I also removed my package-lock.json file to no avail. I don't have a node_modules directory that a lot of the posted solutions recommend to be deleted. I did a brew install npm and now am trying to run an app locally, and I get this.