![]() ![]() Since one of the core ideas behind Homebrew is that apps can be installed without giving them root access, this is a bad idea. The root of the the issue is really that npm is its own package manager and it is therefore better to have npm manage itself and its packages completely on its own instead of letting Homebrew do it.Īlso, using the Homebrew installation of npm will require you to use sudo when installing global packages. However, this is error-prone and still seems to cause problems for some people. The bug has been "fixed" by Homebrew installing npm in a way that allows it to manage itself once the install is complete. There's an NPM bug for this exact problem. The versions are installed system-wide or user-wide, and for more targeted use you can run a version directly from the cached downloads. Specify the target version to install using a rich syntax, or select from a menu of previously downloaded versions. Fortunately, there are several methods to remove Node.js from your Mac, depending on how you installed it. n is a simple to use Node.js version manager for Mac and Linux. Npm ERR! /Users/dan/Google Drive/Projects/dotfiles/npm-debug.log If you’re a Mac user who no longer needs Node.js, you may be wondering how to uninstall it. Npm ERR! Additional logging details can be found in: ![]() Npm ERR! cwd /Users/dan/Google Drive/Projects/dotfiles Npm ERR! command "/usr/local/Cellar/node/0.10.26/bin/node" "/usr/local/bin/npm" "update" "npm" "-g" Npm ERR! Refusing to delete: /usr/local/bin/npm not in /usr/local/lib/node_modules/npm Npm ERR! error rolling back at Object.oncomplete (fs.js:107:15) Npm ERR! error rolling back at /usr/local/Cellar/node/0.10.26/lib/node_modules/npm/lib/utils/gently-rm.js:52:12 Npm ERR! error rolling back at next (/usr/local/Cellar/node/0.10.26/lib/node_modules/npm/lib/utils/gently-rm.js:43:14) Npm ERR! error rolling back at clobberFail (/usr/local/Cellar/node/0.10.26/lib/node_modules/npm/lib/utils/gently-rm.js:57:12) How to Install Node.js on a Mac Open the Terminal by pressing Command+Space to open Spotlight Search and entering Terminal then pressing Enter. Npm ERR! error rolling back Error: Refusing to delete: /usr/local/bin/npm not in /usr/local/lib/node_modules/npm If you install node with Homebrew and then try to do npm update npm -g, you may see an error like this: $ npm update npm -g If you're a Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. Now you can re-install any global npm packages you need without any problems.
0 Comments
Leave a Reply. |