All Questions
633
questions
1030
votes
30
answers
663k
views
xcode-select active developer directory error
Saw the following error when running an npm install which required node-gyp... but could be triggered by anything which requires xcode-select.
xcode-select: error: tool 'xcodebuild' requires Xcode, ...
852
votes
34
answers
297k
views
nvm keeps "forgetting" node in new terminal session
Upon using a new terminal session in OS X, nvm forgets the node version and defaults to nothing:
$ nvm ls:
.nvm
v0.11.12
v0.11.13
I have to keep hitting nvm use v.0.11.13 in ...
237
votes
10
answers
155k
views
What is the recommended way to install Node.js, nvm and npm on MacOS X?
I am trying to use Homebrew as much as possible. What's the recommended way to install Node.js, nvm and npm on MacOS X?
191
votes
22
answers
224k
views
Error: The 'brew link' step did not complete successfully
I'm trying to install node.js via Homebrew. Unfortunately, I get this error:
➜ ~ brew install node
==> Downloading http://nodejs.org/dist/v0.8.10/node-v0.8.10.tar.gz
#############################...
174
votes
33
answers
512k
views
Command not found after npm install in zsh
I'm having some problems installing vows via npm in zsh. Here's what I get. I tried installing it with and without the -g option. Do you have any idea what's wrong here?
[❤ ~/Desktop/sauce-node-demo:...
167
votes
12
answers
281k
views
npm global path prefix
I am being more cautious than usual because I have been confused by the behavior of npm in the past.
I am on a Mac and have installed node.js through brew install node.
Now that I want to run ...
150
votes
6
answers
177k
views
Permission denied when installing npm modules in OSX
I'm trying to install node-g.raphael, and I'm getting the following error:
Bender-03:htdocs alfred$ sudo npm install node-g.raphael --save
Password:
> [email protected] install
/Users/alfred/...
148
votes
7
answers
236k
views
Where should my npm modules be installed on Mac OS X?
I was attempting to upgrade phonegap via npm when I started running into trouble. Long story short, there are two node_modules directories on my computer.
/usr/local/lib/node_modules
/usr/local/share/...
123
votes
6
answers
575k
views
How can I add a .npmrc file?
I installed node on my Mac OS Sierra. I use Windows at my work so there I have a .npmrc file in the node folder but I don't seem to find that in mac.
The problem is I want to add a registry of the ...
114
votes
10
answers
250k
views
how to update npm on macOS
For reasons unknown to me, I haven't been able to update to the latest version of npm on macOS (it works fine on Windows). It displays no error, only 'updated 1 package'.
Using Node.js 8.11.1
node -...
108
votes
12
answers
325k
views
How to fix curl: (60) SSL certificate: Invalid certificate chain
I get the following error running curl https://npmjs.org/install.sh | sh on Mac OSX 10.9 (Mavericks):
install npm@latest
curl: (60) SSL certificate problem: Invalid certificate chain
More details ...
100
votes
12
answers
131k
views
Gulp command not found after install
I installed gulp(globally) and it looks like it worked because it ran this code:
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├...
87
votes
13
answers
170k
views
Error: EACCES: permission denied when trying to install ESLint using npm
I'm trying to install ESLint with npm by going:
npm install -g eslint
However I get the following error:
Deans-Air:~ deangibson$ npm install -g eslint
npm ERR! tar.unpack untar error /Users/...
79
votes
21
answers
203k
views
`node-pre-gyp install --fallback-to-build` failed during MeanJS installation on OSX
I just bought myself a mac book after using Windows for a long time.
I was trying to work on a MeanJS project that I had been working on.
Doing npm install on the project throws error
Failed to ...
73
votes
7
answers
162k
views
NPM Error "Can't find Python executable" in MacOS Big Sur
I've been looking for the answer to this for a good solid week now, with no success. I've looked at every StackOverflow post, every article from Google and every related Github issue I could find. ...
64
votes
12
answers
57k
views
npm doesn't work, get always this error -> Error: Cannot find module 'are-we-there-yet'
i tried to install grunt on a mac with Yosemite. node is already installed in the newest version. if i type "node -v" in the terminal i get the line v0.12.5. thats good. but when i want to install ...
55
votes
23
answers
57k
views
Issue with babel-jest dependency when running npm start in a React app
All I am doing is running create-react-app and cd'ing into the app, then trying to run npm/yarn start. I get the following error/output/log. I have walked through all of the suggested steps. The only ...
54
votes
19
answers
118k
views
keep getting "? Something is already running on port 3000" when I do npm start on react app
I keep on getting "? Something is already running on port 3000" message in my terminal when I start up my react server when there is absolutely nothing running on my port 3000
What I have ...
49
votes
7
answers
58k
views
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
Note: Due to security concerns, please don't use the marked solution but instead the highest voted one!
original question:
I am trying to install monaca with this command.
npm install -g monaca
But ...
46
votes
8
answers
36k
views
NPM not creating .bin directory
I'm using npm v1.4.4 and node v0.10.25 on Mac OS X 10.9.2.
I've recently upgraded node and npm, and now npm install is no longer creating the .bin directory in node_modules.
I've deleted ...
44
votes
1
answer
19k
views
what is ~/.npm dir for?
I have installed the global npm package jslint and it lives here
$ ls -la /usr/local/bin/jslint
lrwxr-xr-x 1 lust admin 40 Feb 12 15:31 /usr/local/bin/jslint -> ../lib/node_modules/jslint/bin/...
40
votes
6
answers
34k
views
Bower Installation Errors
Now I have installed Node and Npm and I run this command in terminal (yes I am on a mac):
npm install -g bower
Which follows with this output from the terminal:
npm http GET https://registry.npmjs....
40
votes
13
answers
118k
views
npm not reading .npmrc file
I'm trying to install a library from a private repository, and I keep getting an error in trying to use npm.
I'm using:
OSX Mavericks 10.9.3
Node v0.10.28
npm 1.4.10 (this was installed after trying ...
39
votes
2
answers
91k
views
Vue command not found [duplicate]
Trying to install Vue, but I am getting an error -bash: vue: command not found.
Everything is installed per Vue instructions and I'm not sure why I am getting this issue.
Thanks in advance!
39
votes
10
answers
54k
views
All NPM commands error with TypeError: Class extends value undefined is not a constructor or null
I've been using n to install node for years with no issues. Now on my Big Sur mac, I updated from v14.17.6 to v16. This updated without incident and node -v shows "16.13.1".
However ...
39
votes
4
answers
72k
views
Install Angular Unsupported Engine, OSX
I am reinstalling my MacBook. And I receive the following message when I install (npm install -g @angular/cli) angular. Any idea why? I suspect the nom version but I comes along with node...
...
38
votes
7
answers
271k
views
Unable to get Angular CLI version, though all the requirements are installed?
I am having difficulties doing anything with the Angular CLI. I have Node, NPM. and Angular all installed, when I run the which command in the terminal they all exist in my /user/local/bin
This is my ...
37
votes
9
answers
57k
views
How to fix "yo: command not found" after installing Yeoman
Following these instructions, I tried to install yeoman using npm twice:
http://yeoman.io/learning/index.html
After the first failure, I uninstalled node using these instructions:
How do I ...
28
votes
1
answer
18k
views
NPM Won't Run After Upgrade
I've been using node .4x and npm, and decided to upgrade to .67. Oh boy.
I'm on Mac OSX--new to it.
When I type npm I get
-bash: /usr/bin/npm: No such file or directory
echo $PATH shows a lot of ...
25
votes
5
answers
13k
views
npm command - sudo or not?
Currently I always run sudo npm install <package-name> but as I understand it's not correct.
I want to have opportunity not to use it as root/Administrator.
I followed some advice and used this ...
23
votes
5
answers
14k
views
-bash: gulp: command not found in Mac
I try install gulp in mac like this :
Is-iMac:~ itop$ npm root
/Users/itop/node_modules
Is-iMac:~ itop$ npm config set prefix /usr/local
Is-iMac:~ itop$ npm root -g
/usr/local/lib/node_modules
Is-...
20
votes
3
answers
7k
views
NPM: The "ld: library not found for -lgcc_s.10.5" on On OS X El Capitan?
When I use npm install to install dependencies of this repository, I encountered an error like this:
> [email protected] install /Users/hanfeisun/Workspace/vue-webpack-example/node_modules/webpack/...
19
votes
8
answers
33k
views
Unable to resolve sequelize package
I'm trying to install sequelize-cli in my Mac OS 10.12.6.
In Terminal, I did
npm install -g sequelize-cli
I got
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher ...
18
votes
7
answers
27k
views
Having trouble installing npm on mac M1
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm ...
18
votes
7
answers
37k
views
Fix a npm install failure with error code EINTEGRITY
I have browsed through various similar posts here to no avail. They all arrive at similar solutions about using npm cache verify or npm cache clear, etc.
I have even went as far as to completely ...
18
votes
7
answers
24k
views
How to fix "zsh: command not found: vue"?
I installed @vue/cli on my mac, but whenever I type “vue”, my terminal says “zsh: command not found: vue” - How can I fix this problem? I searched similar issues and already spent half a day, but ...
17
votes
1
answer
6k
views
npm won't install from package.json within project
On my macbook air I can only install npm packages globally using sudo but anytime I go into a local directory and try to install a local package without the -g it gives me errors.
npm ERR! Error: ...
16
votes
6
answers
44k
views
How to install nodemon Nodejs on macOS? nodemon keeping show : command not found
Currently I already install nodemon with command npm install -g nodemon. And I got Permissions issue, so I do command with sudo npm install -g nodemon and i did it. But when I make "nodeman" ...
16
votes
4
answers
12k
views
Specify 'PATH' environment does not work when running Gradle 'exec'
I tried to call npm in my Gradle build. The npm is installed via homebrew into /usr/local/bin. The gradle will fail to find npm when executing it.
However it always failed after I added PATH ...
16
votes
6
answers
28k
views
NPM won't install any package on Mac. New, clean build. `EACCES` & other errors
I've just rebuild my Mavericks (Mac OS X Version 9.4) machine from scratch. I am the administrator and only user of this machine.
I installed Git via their git-2.0.1-intel-universal-snow-leopard.pkg ...
15
votes
2
answers
24k
views
NPM Global Install Location on OSX
On OSX should NPM install global packages to:
/usr/local/lib/node_modules
or
/usr/local/share/npm
15
votes
3
answers
15k
views
BrowserSync : Command not found after installing browser-sync
There was another issue open with the same title which has been closed but my error could not be resolved using the solutions given in that issue.
Mac OSX El Capitan
Node [v5.6.0]
Npm [v3.6.0]
I ...
15
votes
6
answers
34k
views
Getting error npm ERR! code EUNSUPPORTEDPROTOCOL while running npm install
While installing npm install am getting below error. Following are my node version.
OS : MacOS Big Sur V11.6.2
Macs-MacBook-Pro-3:slides mac$ node -v
v16.13.1
Macs-MacBook-Pro-3:slides mac$ npm -v
8.3....
14
votes
5
answers
26k
views
Install node 12 on macOS
I want to install node 12 on my macOS.
I tried brew. brew install node@12 prints this error,
Error: node@12 has been disabled because it is not supported upstream!
How do you install it anyway?
14
votes
4
answers
9k
views
Internal Error: EACCES: permission denied, symlink '../lib/node_modules/corepack/dist/pnpm.js' -> '/usr/local/bin/pnpm'
I'm trying to enable 'corepack' by running
corepack enable
according to the directions here: https://yarnpkg.com/getting-started/install
but getting this error
Internal Error: EACCES: permission ...
13
votes
9
answers
18k
views
npm start on new create-react-app build returns ELIFECYCLE error
Made a new react app using create-react-app and now getting the following error in the terminal when running npm start:
> react-scripts start
Attempting to bind to HOST environment variable: ...
13
votes
4
answers
17k
views
Node.js Heroku Deployment on Mac - sh: 1: nodemon: not found / npm ERR! `nodemon fileName.js` / npm ERR! Failed at the...start script
Deploying on Heroku with Node.js using Mac
My issue:
State changed from starting to crashed &&
sh: 1: nodemon: not found &&
Failed at...start script &&
status 1...code=H10
...
13
votes
7
answers
28k
views
Global installation with npm doesn't work after Mac OS X Mavericks update
After upgrading to OS X 10.9 Mavericks, node wasn't found anymore in bash. I think I installed it with brew a while ago.
I decided to use the installer from node.js website. It went fine and both ...
13
votes
2
answers
4k
views
No port serf found in the index; can't rebuild
I'm trying to install npm port package but when I run the command "sudo port install npm" the bash shows error message below, and repeat the same error infinitely.
Warning: No port serf found in the ...
13
votes
4
answers
25k
views
webpack: command not found after npm install webpack -g
Weird behaviour on my OSX Yosemite: from one day to another all my node modules installed by npm install -g were not found via the Terminal.
I'm not sure if this is due to my node v4.0.0 install the ...