Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

/usr/local/bin/replace clashes with mariadb #34

Open
psynaptic opened this issue Feb 17, 2014 · 2 comments
Open

/usr/local/bin/replace clashes with mariadb #34

psynaptic opened this issue Feb 17, 2014 · 2 comments

Comments

@psynaptic
Copy link

❯ sudo npm install replace -g
Password:
npm http GET https://registry.npmjs.org/replace
npm http 304 https://registry.npmjs.org/replace
npm http GET https://registry.npmjs.org/nomnom
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/colors/-/colors-0.5.1.tgz
npm http 200 https://registry.npmjs.org/nomnom
npm http GET https://registry.npmjs.org/nomnom/-/nomnom-1.6.2.tgz
npm http 200 https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/colors/-/colors-0.5.1.tgz
npm http 200 https://registry.npmjs.org/nomnom/-/nomnom-1.6.2.tgz
npm http GET https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz
npm http 200 https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 200 https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/sigmund/-/sigmund-1.0.0.tgz
npm http 200 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/lru-cache/-/lru-cache-2.5.0.tgz
npm http 200 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz
npm http 200 https://registry.npmjs.org/sigmund/-/sigmund-1.0.0.tgz
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz
npm http 200 https://registry.npmjs.org/lru-cache/-/lru-cache-2.5.0.tgz
/usr/local/bin/search -> /usr/local/lib/node_modules/replace/bin/search.js
npm ERR! error rolling back Error: Refusing to delete: /usr/local/bin/replace not in /usr/local/lib/node_modules/replace
npm ERR! error rolling back     at clobberFail (/usr/local/lib/node_modules/npm/lib/utils/gently-rm.js:41:12)
npm ERR! error rolling back     at next (/usr/local/lib/node_modules/npm/lib/utils/gently-rm.js:27:14)
npm ERR! error rolling back     at /usr/local/lib/node_modules/npm/lib/utils/gently-rm.js:36:12
npm ERR! error rolling back     at Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back  replace@0.2.9 { [Error: Refusing to delete: /usr/local/bin/replace not in /usr/local/lib/node_modules/replace] code: 'EEXIST', path: '/usr/local/bin/replace' }
npm ERR! Refusing to delete: /usr/local/bin/replace not in /usr/local/lib/node_modules/replace
File exists: /usr/local/bin/replace
Move it away, and try again.

npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "replace" "-g"
npm ERR! cwd /Users/psynaptic/repos/github
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! path /usr/local/bin/replace
npm ERR! code EEXIST
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/psynaptic/repos/github/npm-debug.log
npm ERR! not ok code 0
❯ ls -l /usr/local/bin/replace
lrwxr-xr-x  1 psynaptic  admin    36B 12 Feb 14:56 /usr/local/bin/replace -> ../Cellar/mariadb/5.5.35/bin/replace
@psynaptic
Copy link
Author

I've worked around the problem by creating a shell alias but if it's desirable for installation via npm to be smooth it should probably be renamed or created elsewhere.

@sibsfinx
Copy link

with mysql too
/usr/local/bin/replace -> ../Cellar/mysql/5.6.16/bin/replace

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants