首页 > 解决方案 > “npm runeject”成功弹出,但后面跟着“找不到批处理文件”。

问题描述

我用 . 创建了一个新项目。create-react-native-app但是,在运行时npm run eject,它显示成功弹出!, 但紧随其后

[15:29:29] Ejected successfully!
The batch file cannot be found.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ eject: `expo eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ eject script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\AppData\Roaming\npm-cache\_logs\2019-02- 06T09_59_29_832Z-debug.log

npm 版本:v8.11.2

标签: react-nativenpm

解决方案


推荐阅读