brackets-userland / brackets-npm-registry

Extension to install other extensions with npm
MIT License
44 stars 8 forks source link

EEXIST error when trying to update, reinstall or install anything #41

Closed senhongo closed 6 years ago

senhongo commented 8 years ago

ERROR: "Error: EEXIST, symlink '/Applications/Brackets.app/Contents/MacOS/Brackets-node'"

Brackets v1.7.0-16898 OSX 10.11.6 node v6.3 npm v3.10.6

senhongo commented 8 years ago

Running npm install within the directory throws an error too.

Sora:brackets-npm-registry ST47$ npm install

> brackets-npm-registry@0.6.3 prepublish /Users/ST47/Dropbox/brackets/user/brackets-npm-registry
> gulp build

module.js:442
    throw err;
    ^

0 info it worked if it ends with ok
1 verbose cli [ '/Users/ST47/.nvm/versions/node/v6.3.0/bin/node',
1 verbose cli   '/Users/ST47/.nvm/versions/node/v6.3.0/bin/npm',
1 verbose cli   'install' ]
2 info using npm@3.10.6
3 info using node@v6.3.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly install normalizeTree
8 silly loadCurrentTree Finishing
9 silly loadIdealTree Starting
10 silly install loadIdealTree
11 silly cloneCurrentTree Starting
12 silly install cloneCurrentTreeToIdealTree
13 silly cloneCurrentTree Finishing
14 silly loadShrinkwrap Starting
15 silly install loadShrinkwrap
16 silly loadShrinkwrap Finishing
17 silly loadAllDepsIntoIdealTree Starting
18 silly install loadAllDepsIntoIdealTree
19 silly loadAllDepsIntoIdealTree Finishing
20 silly loadIdealTree Finishing
21 silly currentTree brackets-npm-registry@0.6.3
21 silly currentTree ├── accepts@1.2.13
21 silly currentTree ├── acorn@1.2.2
21 silly currentTree ├── align-text@0.1.4
21 silly currentTree ├── alter@0.2.0
21 silly currentTree ├── amdefine@1.0.0
21 silly currentTree ├── ansi-regex@2.0.0
21 silly currentTree ├── ansi-styles@2.2.1
21 silly currentTree ├── anymatch@1.3.0
21 silly currentTree ├── aproba@1.0.4
21 silly currentTree ├── archy@1.0.0
21 silly currentTree ├── are-we-there-yet@1.1.2
21 silly currentTree ├── argparse@1.0.7
21 silly currentTree ├── arr-diff@2.0.0
21 silly currentTree ├── arr-flatten@1.0.1
21 silly currentTree ├── array-differ@1.0.0
"npm-debug.log" 1971L, 100902C

I've just remembered that my ~/Library/Application\ Support/Brackets/extensions/user/ is itself a symlinked folder in Dropbox to share my settings across 3 different machines. It's possible that I did the original install on another machine which is causing this error.

zaggino commented 7 years ago

Seems like a bug, but I don't have a Mac or a symlinked user folder to replicate and fix this. If you managed to found a solution, it'd be great to share it with others. PRs are also welcome.