D:\workspace>react—native myproject
this will walk you through creating a new React Native project in D:\workspace\myproject
Installing react—native package from npm..
>spawn—sync(@1.O.15 postinstall D:\workspace\nyproject\j-iode..jmodules\react—native
\nodenodules\yeonan—generator\node.jnodules ‘cross—spawn\node.jmodules \spawn—sync
>node postinstall
npm WARN peerDependencies The peer dependency react@15.3.l. included fron react—native will no
npm WARN peerDependencies longer he autonatically installed to fulfill the peerD pendency
npm WARN peerDependencies in npm 3. Your application will need to depend on it xplicitly.
npm WARN deprecated cross—spawn—asyncS2.2.4: cross—spawn no longer requires a btL ild toolchain, use it instead?
npm ERR! tar.unpack untar error C:\Users\.asus\AppData\Roaning\npm—cache\crc\3.3.1\package .tgz
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\.Progran FilesWiodejs\\riode.exe""C:V.Progran FilesVnodejsViode.nodules\npm\bin\npm—cli.js""install""——save""——save—exact""react—native"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! path D:\workspace\myproject\node_modules\react—native’.node_nodules\conn
ct\nodejmodules \express—session\aode_nodules\crc\lib\crc8.js
npm ERR! code EPERM
npm ERR! errno —4048
npm ERR! syscall open
npm ERR! Error: EPERM: operation not pernitted. open 'D:.workspace\myproject\node_modules\react—native\node_modules contsn ode_nodules\sexpress—session\node_no
iules\scrc\lib\crc8.js'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not pernitted, open 'D:\workspace\myproject\node_nodules\react—native\node_nodules \myproject\node_modules\express-session\node_modules\crc\lib\crc8.js']
npm ERR! errno: —4048
npm ERR! code: 'EPERM'
npm ERR! syscall: 'open'
npm ERR! path:'D:\\workspace\myproject\\node_modules\\react—nativeS.node_nod.tles\\connect\\node_nodules\\express—session\\'snode_nodules\\crc\\lib\\crc8.js' )
npm ERR!
npm ERR! Please try running this connand again as root/Adninistrator.
npm ERR! Please include the following file with any support request:
npm ERR! D:\workspace’nyproject\npm—dehug. log
'npm install ——save ——save—exact react—native' failed
把error code在stackoverfow里搜一下?我看你node版本好像不太新,升级到6.x版本再试一下?也许是版本问题