问题描述
进入我的React应用程序。我尝试重新安装node_module,设置 环境变量C:\ Windows \ System32
{
"name": "my_app","version": "0.1.0","private": true,"dependencies": {
"@testing-library/jest-dom": "^4.2.4","@testing-library/react": "^9.5.0","@testing-library/user-event": "^7.2.1","bootstrap": "^4.5.2","bootstrap-social": "^5.1.1","font-awesome": "^4.7.0","react": "^16.13.1","react-dom": "^16.13.1","react-popper": "^2.2.3","react-redux": "^7.2.1","react-router-dom": "^5.2.0","react-scripts": "3.4.1","reactstrap": "^8.5.1","redux": "^4.0.5"
},"scripts": {
"start": "react-scripts start","build": "react-scripts build","test": "react-scripts test","eject": "react-scripts eject"
},"eslintConfig": {
"extends": "react-app"
},"browserslist": {
"production": [
">0.2%","not dead","not op_mini all"
],"development": [
"last 1 chrome version","last 1 firefox version","last 1 safari version"
]
},"description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).","devDependencies": {
"@babel/core": "^7.4.0","@babel/preset-env": "^7.4.2","@babel/preset-react": "^7.0.0","babel-loader": "^8.0.5","css-loader": "^2.1.1","html-loader": "^0.5.5","html-webpack-plugin": "^3.2.0","lite-server": "^2.5.4","react": "^16.8.5","react-dom": "^16.8.5","style-loader": "^0.23.1","webpack": "^4.42.0","webpack-cli": "^3.3.0","webpack-dev-server": "^3.2.1"
}
}
this.htmlWebpackPlugin.getHooks不是函数
npm ERR!代码ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected]开始:react-scripts start
npm ERR!退出状态1
npm ERR!
npm ERR!在[email protected]启动脚本处失败。
npm ERR! npm可能不是问题。上面可能还有其他日志记录输出。
npm ERR!可以在以下位置找到此运行的完整日志: npm ERR! C:\ Users \ User \ AppData \ Roaming \ npm-cache_logs \ 2020-08-13T02_51_42_849Z-debug.log
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)