Last active
August 29, 2015 14:14
-
-
Save jacoyutorius/bbeaa97943dec8698ffd to your computer and use it in GitHub Desktop.
Bowerのインストールで「Error: EACCES〜」が発生した場合の対処 ref: http://qiita.com/jacoyutorius/items/e73355711e36a1c864df
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yuto-ogi [11:53:22] | |
| $ npm install bower -g | |
| npm ERR! Darwin 14.0.0 | |
| npm ERR! argv "node" "/usr/local/bin/npm" "install" "bower" "-g" | |
| npm ERR! node v0.10.36 | |
| npm ERR! npm v2.3.0 | |
| npm ERR! path /Users/yuto-ogi/.npm/graceful-fs/3.0.5 | |
| npm ERR! code EACCES | |
| npm ERR! errno 3 | |
| npm ERR! Error: EACCES, mkdir '/Users/yuto-ogi/.npm/graceful-fs/3.0.5' | |
| npm ERR! { [Error: EACCES, mkdir '/Users/yuto-ogi/.npm/graceful-fs/3.0.5'] | |
| npm ERR! errno: 3, | |
| npm ERR! code: 'EACCES', | |
| npm ERR! path: '/Users/yuto-ogi/.npm/graceful-fs/3.0.5', | |
| npm ERR! parent: 'bower' } | |
| npm ERR! | |
| npm ERR! Please try running this command again as root/Administrator. | |
| npm ERR! Please include the following file with any support request: | |
| npm ERR! /Users/yuto-ogi/Dropbox/Public/source/npm-debug.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yuto-ogi [11:53:34] | |
| $ ll ~/.npm | |
| ~ | |
| drwxr-xr-x 4 root staff 136 11 3 15:50 graceful-fs | |
| ~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yuto-ogi [11:54:38] | |
| $ sudo chown -R yuto-ogi ~/.npm/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yuto-ogi [11:54:44] | |
| $ npm install bower -g | |
| /usr/local/bin/bower -> /usr/local/lib/node_modules/bower/bin/bower | |
| [email protected] /usr/local/lib/node_modules/bower | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ├── [email protected] | |
| ~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yuto-ogi [11:54:44] | |
| $ bower -v | |
| 1.3.12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment