admin管理员组文章数量:1123007
If I want to start my React project with npm start
I get this error:
The command "node" is either misspelled or could not be found.
To my project:
- node v: v22.11.0
- npm v: 10.9.0
- react: ^18.3.1
my package.json
{
"name": "frontend-quizmaster",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.7.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
- I tried to reinstall NodeJS.
- Also added a new path variable into the system.
- I also tried to reinstall
npm
npm uninstall package.json npm cache clean -f npm install
If I want to start my React project with npm start
I get this error:
The command "node" is either misspelled or could not be found.
To my project:
- node v: v22.11.0
- npm v: 10.9.0
- react: ^18.3.1
my package.json
{
"name": "frontend-quizmaster",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.7.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
- I tried to reinstall NodeJS.
- Also added a new path variable into the system.
- I also tried to reinstall
npm
npm uninstall package.json npm cache clean -f npm install
Share
Improve this question
edited Nov 22, 2024 at 20:47
Hamed Jimoh
7455 silver badges17 bronze badges
asked Nov 21, 2024 at 8:34
JoFJoF
135 bronze badges
1 Answer
Reset to default 0Check if Node.js is Installed = node -v Add Node.js to System PATH Reinstall npm Packages npm start
thought like this will work
本文标签:
版权声明:本文标题:reactjs - How to Resolve "The command 'node' is either misspelled or could not be found" Error 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736538613a1944355.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论