ecomfe / react-native-cn

407 stars 69 forks source link

react-native init失败 #57

Open Barret-ma opened 9 years ago

Barret-ma commented 9 years ago

This will walk you through creating a new React Native project in /Users/qitmac000303/AwesomeProject npm WARN locking Error: EACCES, open '/Users/qitmac000303/.npm/_locks/react-native-f937d6feebda60ab.lock' npm WARN locking at Error (native) npm WARN locking /Users/qitmac000303/.npm/_locks/react-native-f937d6feebda60ab.lock failed { [Error: EACCES, open '/Users/qitmac000303/.npm/_locks/react-native-f937d6feebda60ab.lock'] npm WARN locking errno: -13, npm WARN locking code: 'EACCES', npm WARN locking path: '/Users/qitmac000303/.npm/_locks/react-native-f937d6feebda60ab.lock' } npm ERR! Darwin 14.3.0 npm ERR! argv "node" "/usr/local/bin/npm" "install" "--save" "react-native" npm ERR! node v0.12.0 npm ERR! npm v2.5.1

npm ERR! Attempt to unlock /Users/qitmac000303/AwesomeProject/node_modules/react-native, which hasn't been locked npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! http://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /Users/qitmac000303/AwesomeProject/npm-debug.log npm install --save react-native failed

请问这是什么原因?

bengle commented 9 years ago

官网上面有说明:http://facebook.github.io/react-native/docs/troubleshooting.html#content 最下面一个