[问题] react 环境安装

楼主: lonelytea (霸气逼人)   2017-07-16 18:28:58
各位好
我照着这个流程
https://read01.com/5oakmJ.html
去安装
但要在react-native-cli
跑 npm install -g
却出现错误
F:\RnDev\react-native\react-native-cli>npm install -g
npm WARN F:\RnDev\react-native\react-native-cli\node_modules\semver is not a
child of C:\Users\Pascal\AppData\Roaming\npm
npm ERR! path F:\RnDev\react-native\react-native-cli\node_modules\semver
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename
'F:\RnDev\react-native\react-native-cli\node_modules\semver' ->
'F:\RnDev\react-native\react-native-cli\node_modules\.semver.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR!
C:\Users\Pascal\AppData\Roaming\npm-cache\_logs\2017-07-16T10_23_54_375Z-debug.log
请问这个要怎么解决
QQ
新手上路 感谢
作者: vincenter (Salut...)   2017-07-16 23:20:00
这流程跟官网的不一样,你要不要照官网的流程
作者: enwebbs   2017-07-17 13:14:00

Links booklink

Contact Us: admin [ a t ] ucptt.com