$ react-native init ProjectName 위의 명령을 입력했다가 아래와 같은 상황에 마주쳤다
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
... npm ERR! Darwin 13.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "react-native" npm ERR! node v4.0.0 npm ERR! npm v2.14.2 npm ERR! shasum check failed for /var/folders/zj/6kg3tgzj4tq59qkjby48f4cw0000gn/T/npm-6489-ef2af11b/registry.npmjs.org/which/-/which-1.1.2.tgz npm ERR! Expected: 486c48af6dfecc7a7dcf9c655acf108d2dcbdf3d npm ERR! Actual: da39a3ee5e6b4b0d3255bfef95601890afd80709 npm ERR! From: https://registry.npmjs.org/which/-/which-1.1.2.tgz npmERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! /Users/cesilphp/Downloads/react_app/npm-debug.log `npm install --save react-native` failed |
npm에 문제가 있었는지 아래와 같은 명령어를 실행해서 해결하였다. $ sudo chown -R $(whoami) “$HOME/.npm” $ npm -g install npm 출처 : https://github.com/npm/npm/issues/7555