我已经使用npm在我的项目中安装了react-timeout,并且遇到一个问题,如果我安装了其他npm软件包,则react-timeout要求重新安装,而两个软件包在安装其中一个及其安装后都要求安装我正在安装的任何其他npm软件包都发生了这种情况,因此无法使用任何npm库,这对我造成了巨大的问题。
下面是我的package.json文件
{
"name": "",
"version": "0.1.0",
"private": true,
"dependencies": {
"@amcharts/amcharts3-react": "^3.1.0",
"@cra-express/core": "^4.3.1",
"@cra-express/redux-prefetcher": "^4.3.1",
"@cra-express/router-prefetcher": "^4.3.1",
"@material-ui/icons": "^4.9.1",
"@tinymce/tinymce-react": "^3.4.0",
"add": "^2.0.6",
"alloyeditor": "^1.5.27",
"autoprefixer": "7.1.6",
"axios": "^0.18.0",
"babel-core": "6.26.0",
"babel-eslint": "7.2.3",
"babel-jest": "20.0.3",
"babel-loader": "7.1.2",
"babel-preset-react-app": "^3.1.1",
"babel-runtime": "6.26.0",
"base64-img": "^1.0.4",
"blueimp-load-image": "^2.20.1",
"body-parser": "^1.18.3",
"bootstrap": "^4.4.1",
"bootstrap-daterangepicker": "^3.0.3",
"case-sensitive-paths-webpack-plugin": "2.1.1",
"chalk": "1.1.3",
"cheerio": "^1.0.0-rc.2",
"classnames": "^2.2.6",
"cookie": "^0.4.0",
"cookies": "^0.8.0",
"cookies-js": "^1.2.3",
"crypto-js": "^4.0.0",
"cryptr": "^4.0.0",
"css-loader": "0.28.7",
"dom-parser": "^0.1.6",
"dotenv": "4.0.0",
"dotenv-expand": "4.2.0",
"draft-js": "^0.11.1",
"draftjs-to-html": "^0.8.4",
"email-validator": "^2.0.3",
"eslint": "4.10.0",
"eslint-config-react-app": "^2.1.0",
"eslint-loader": "1.9.0",
"eslint-plugin-flowtype": "2.39.1",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-jsx-a11y": "5.1.1",
"eslint-plugin-react": "7.4.0",
"express": "^4.16.3",
"file-loader": "1.1.5",
"framework7-react": "^5.4.2",
"fs-extra": "3.0.1",
"history": "^4.7.2",
"html-react-parser": "^0.9.1",
"html-webpack-plugin": "^3.2.0",
"jest": "20.0.4",
"jquery": "^3.5.1",
"js-cookie": "^2.2.1",
"jsdom": "^16.2.2",
"material-ui-icons": "^1.0.0-beta.36",
"moment": "^2.21.0",
"node-sass-chokidar": "^1.1.0",
"object-assign": "4.1.1",
"otp-input-react": "^0.2.4",
"postcss-flexbugs-fixes": "3.2.0",
"postcss-loader": "^2.0.10",
"pretty-checkbox": "^3.0.3",
"promise": "8.0.1",
"prop-types": "^15.7.2",
"quill-image-upload": "^0.1.3",
"quill-image-uploader": "^1.1.0",
"raf": "3.4.0",
"rc-tooltip": "^4.0.3",
"react": "^16.12.0",
"react-bootstrap": "^0.32.4",
"react-bootstrap-table": "^4.3.1",
"react-csv": "^1.0.19",
"react-dates": "^16.7.0",
"react-dev-utils": "^5.0.0",
"react-dom": "^16.12.0",
"react-draft-wysiwyg": "^1.13.2",
"react-facebook-login": "^4.1.0",
"react-file-input": "^0.2.5",
"react-floating-action-button": "^1.0.5",
"react-floating-button-menu": "^2.0.8",
"react-google-login": "^3.2.1",
"react-helmet": "^5.2.0",
"react-helmet-async": "^1.0.4",
"react-icons": "^3.7.0",
"react-loadable": "^5.4.0",
"react-mfb": "^0.6.0",
"react-otp-input": "^1.0.1",
"react-quill": "^1.3.3",
"react-quill-image-uploader": "^0.1.1",
"react-recaptcha": "^2.3.10",
"react-redux": "^5.0.7",
"react-router": "^5.1.2",
"react-router-dom": "^4.2.2",
"react-router-last-location": "^2.0.1",
"react-scripts": "3.4.1",
"react-scroll": "^1.7.14",
"react-scroll-to-component": "^1.0.2",
"react-select": "^1.2.1",
"react-share": "^2.1.0",
"react-summernote": "^2.0.0",
"react-tiny-fab": "^3.4.0",
"react-twitter-conversion-tracker": "^1.0.0",
"react-visibility-sensor": "^5.1.1",
"redux": "^3.7.2",
"redux-devtools-extension": "^2.13.8",
"redux-logger": "^3.0.6",
"redux-persist": "^5.9.1",
"redux-persist-cookie-storage": "^1.0.0",
"redux-persist-transform-encrypt": "^2.0.1",
"redux-thunk": "^2.2.0",
"socket.io-client": "^1.7.0",
"style-loader": "^0.19.1",
"styled-components": "^5.0.1",
"sw-precache-webpack-plugin": "0.11.4",
"url-loader": "0.6.2",
"uuid": "^3.2.1",
"webpack": "3.8.1",
"webpack-dev-server": "2.9.4",
"webpack-manifest-plugin": "1.3.2",
"webpack-node-externals": "^1.7.2",
"whatwg-fetch": "2.0.3",
"winston": "^3.0.0",
"winston-daily-rotate-file": "^3.3.0",
"xlsx": "^0.13.0",
"yarn": "^1.22.4"
},
"scripts": {
"build-css": "node-sass-chokidar src/ -o src/",
"watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive",
"start": "set PORT=3001 && node scripts/start.js",
"start-prod": "pm2 start production.js",
"build": "node scripts/build.js && rimraf build/**/*.map",
"test": "node scripts/test.js --env=jsdom",
"deverror-logger": "node server-error.js"
},
"devDependencies": {
"@babel/core": "^7.7.4",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.7.4",
"@babel/plugin-transform-async-to-generator": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@babel/preset-react": "^7.7.4",
"@ckeditor/ckeditor5-alignment": "^17.0.0",
"babel-loader": "^8.0.6",
"babel-plugin-css-modules-transform": "^1.6.2",
"babel-plugin-transform-class-properties": "^6.24.1",
"cra-universal": "^4.3.1",
"extract-text-webpack-plugin": "^3.0.2",
"isomorphic-style-loader": "^5.1.0",
"javascript-obfuscator": "^0.18.1",
"mini-css-extract-plugin": "^0.9.0",
"start-server-webpack-plugin": "^2.2.5"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,mjs}"
],
"setupFiles": [
"<rootDir>/config/polyfills.js"
],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}",
"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,mjs}"
],
"testEnvironment": "node",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$"
],
"moduleNameMapper": {
"^react-native$": "react-native-web"
},
"moduleFileExtensions": [
"web.js",
"mjs",
"js",
"json",
"web.jsx",
"jsx",
"node"
]
},
"babel": {
"presets": [
"react-app"
]
},
"eslintConfig": {
"extends": "react-app"
}
}
任何帮助或建议将不胜感激。