我们正在开发React应用程序,为此,我们正在尝试通过Windows命令提示符全局安装必需的软件包。但是它无法安装这些软件包。它会引发类似“超出最大调用堆栈大小”的错误。 Package.json详细信息如下
{
"version": "1.0.0",
"name": "asp.net",
"private": true,
"dependencies": {
"@babel/polyfill": "^7.2.5",
"css-hot-loader": "^1.4.2",
"react": "^16.6.3",
"react-dom": "^16.6.3"
},
"scripts": {
"start": "rimraf dist && webpack-dev-server --env=development --config webpack.config.js --watch",
"prodbuild": "rimraf dist && webpack --env=production --config webpack.prod.config.js --watch",
"build": "webpack"
},
"devDependencies": {
"@babel/cli": "^7.2.0",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/plugin-proposal-decorators": "^7.3.0",
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/plugin-proposal-export-namespace-from": "^7.2.0",
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-object-assign": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.1.0",
"babel-loader": "^8.0.5",
"babel-plugin-module-resolver": "^3.1.3",
"babel-plugin-transform-typescript": "^7.0.0-alpha.19",
"babel-preset-env": "^1.7.0",
"compression-webpack-plugin": "^2.0.0",
"copy-webpack-plugin": "^4.6.0",
"cross-env": "^5.2.0",
"css-loader": "^1.0.1",
"dotenv": "^6.2.0",
"enzyme": "^3.3.0",
"file-loader": "^2.0.0",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"gzip-loader": "0.0.1",
"html-webpack-include-assets-plugin": "^1.0.6",
"html-webpack-plugin": "^3.2.0",
"jest": "^23.6.0",
"less": "^3.0.4",
"less-loader": "^4.1.0",
"mini-css-extract-plugin": "^0.4.0",
"react-test-renderer": "16.6.1",
"redux-devtools-extension": "2.13.5",
"rimraf": "^2.6.3",
"source-map-loader": "^0.2.4",
"style-loader": "^0.23.1",
"ts-import-plugin": "^1.5.2",
"ts-jest": "^23.10.4",
"ts-loader": "^5.3.0",
"tslint": "^5.10.0",
"tslint-loader": "^3.5.4",
"typescript": "3.1.6",
"url-loader": "^1.1.2",
"webpack": "^4.25.1",
"webpack-bundle-analyzer": "^3.0.3",
"webpack-cli": "^3.1.2",
"webpack-dashboard": "^2.0.0",
"webpack-dev-server": "^3.1.14"
}
}
错误屏幕截图
Node js版本为10.16
我们也尝试了以下链接解决方案。但是仍然遇到同样的错误,我们还是没有运气。