Install Node-Gyp Mac

Install Node-Gyp Mac. You must install peer dependencies yourself. Node.js native addon build tool.

mac下npm install 报错 Error `gyp` failed with exit code 简书
mac下npm install 报错 Error `gyp` failed with exit code 简书 from www.jianshu.com

One of the easiest ways to do this on macos is via the brew package manager. If these install without errors, you have bypassed one of the most frustrating experiences for npm users on windows. If your brew install is messed up, brew doctor can help restore a proper install.

Open A Command Window And Write:


You’ll usually find it in a path like: I ran into a few hiccups and here is how i got around them. One of the easiest ways to do this on macos is via the brew package manager.

App / Contents / Developer) Failed.


So the workround was to run the following command: The problem still lies in the incompatibility between node and node gyp version, which can be solved by lifting the node version. Npm config set node_gyp ;

All Traces Of The Executable Will Be Gone From Your System.


My previous macbook pro was showing its age, so i thought now was a good time. Node.js native addon build tool. Assuming you used brew install node to install it, just execute this to get rid of it:

After Searching On Internet And Trying Few Different Solutions I Have Found A Reliable Approach To Resolve This Issue.


You must install peer dependencies yourself. There is likely additional logging output above. (may need to change path to your custom install directory.) open a new command prompt and run the following commands.

Python V3.6, V3.7, V3.8, Or V3.9;


Run npm with an environment variable prefix: The node version manager (nvm) is almost as convenient as homebrew, but in a different way. Supports the targeting of different versions of node.js;

Post a Comment for "Install Node-Gyp Mac"