【发布时间】:2019-08-21 09:39:18
【问题描述】:
我正在尝试在一个新项目上运行npm run eject,以便我可以配置 Webpack 文件,但我收到了以下消息:
✗ npm run eject
> location@0.1.0 eject /Users/danale/Projects/location
> react-scripts eject
NOTE: Create React App 2 supports TypeScript, Sass, CSS Modules and more without ejecting: https://reactjs.org/blog/2018/10/01/create-react-app-v2.html
? Are you sure you want to eject? This action is permanent. Yes
This git repository has untracked files or uncommitted changes:
为什么要引用所有项目文件夹?需要明确的是,我正在使用 CRA 创建的一个项目文件夹中运行上述命令。
我不在包含我所有项目的文件夹中,我在包含一个新创建项目的文件夹中。话虽如此,为什么 npm 引用了我所有的其他项目?
【问题讨论】:
标签: npm webpack create-react-app