我有一些反应项目,我想创建一个新的项目,不幸的是,“ npm start”不再在我的项目的任何中执行任何操作。我用create-react-app testnpm
创建了一个新的示例React项目,并尝试使用npm start
,不幸的是它对任何东西都没有,没有错误消息,在终端中什么也没有。
npm install
可以正常工作,并且package.json存在
"scripts": {
"start": "react-script start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
我尝试了什么?检查是否已安装Node和npm
➜ portfolio-website git:(folder-structure) ✗ node -v
v12.13.1
➜ portfolio-website git:(folder-structure) ✗ npm -v
6.13.1
重新启动VSCode和Macbook。
在不同项目中试用npm start
。
我得出结论,肯定存在一个更深层次的问题,不是项目本身,而是我的mac /我的设置。
我该怎么做可能导致了此问题?
我最近开始在我的一个项目中实现Typescript,因此我安装了适当的类型,以便Typescript知道React类型,我还遵循了前端大师教程。
这是我尝试运行npm start
➜ portfolio-website git:(folder-structure) ✗ npm start
➜ portfolio-website git:(folder-structure) ✗ npm run build
➜ portfolio-website git:(folder-structure) ✗
关于在哪里看或对我有什么帮助的新想法?