弹出反应本机后无法再次弹出
Not able to eject again after eject react native
我是 reactnative 的新手,我已经成功弹出到本地构建,我发现在 reactnative 之后需要调整一些东西所以我想再次编辑 js 并再次弹出。
但我发现它无法再次使用 npm run eject
弹出,并显示以下错误:
npm run eject
npm ERR! Darwin 16.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "eject"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! missing script: eject
npm ERR!
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/xxx/work/reactnative/maoquote/npm-debug.log
并且我检查了项目文件夹中的 package.json
,eject
块丢失了,但我确定 eject
块在我第一次弹出项目之前就在那里, 框架似乎在弹出后将其删除?
不知道为什么 reactnative 不允许我再次弹出,有什么办法可以做到吗?
我正在使用反应原生 version 0.45
谢谢!
您使用 create-react-native-app
创建了项目?不幸的是,弹出是不可逆的,你应该使用你的版本控制来手动回滚。
见Ejecting
:
"Ejecting" is the process of setting up your own custom builds for
your CRNA app. It can be necessary to do if you have needs that aren't
covered by CRNA, but please note that aside from the use of version
control systems (git, hg, etc.) it is not reversible.
我是 reactnative 的新手,我已经成功弹出到本地构建,我发现在 reactnative 之后需要调整一些东西所以我想再次编辑 js 并再次弹出。
但我发现它无法再次使用 npm run eject
弹出,并显示以下错误:
npm run eject
npm ERR! Darwin 16.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "eject"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! missing script: eject
npm ERR!
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/xxx/work/reactnative/maoquote/npm-debug.log
并且我检查了项目文件夹中的 package.json
,eject
块丢失了,但我确定 eject
块在我第一次弹出项目之前就在那里, 框架似乎在弹出后将其删除?
不知道为什么 reactnative 不允许我再次弹出,有什么办法可以做到吗?
我正在使用反应原生 version 0.45
谢谢!
您使用 create-react-native-app
创建了项目?不幸的是,弹出是不可逆的,你应该使用你的版本控制来手动回滚。
见Ejecting
:
"Ejecting" is the process of setting up your own custom builds for your CRNA app. It can be necessary to do if you have needs that aren't covered by CRNA, but please note that aside from the use of version control systems (git, hg, etc.) it is not reversible.