我的PC上的npm出现问题。
节点-v v10.16.0
npm -v 6.9.0
npm install返回以下内容:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules\chokidar\node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: EBUSY: resource busy or locked, rename 'I:\js\promo\node_modules\.staging\fsevents-58f790e8\node_modules\aproba' -> 'I:\js\promo\node_modules\.staging\aproba-1d87c747'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules\jest-haste-map\node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: EBUSY: resource busy or locked, rename 'I:\js\promo\node_modules\.staging\fsevents-14a87c54\node_modules\aproba' -> 'I:\js\promo\node_modules\.staging\aproba-22d120c7'
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ivan\AppData\Roaming\npm-cache\_logs\2019-07-11T15_46_19_576Z-debug.log
package.json:
package.json
{
"name": "promo_front",
"version": "0.1.0",
"private": true,
"scripts": {
"start": "env-cmd dev.env react-app-rewired start",
"prod": "env-cmd prod.env react-app-rewired build",
"build": "env-cmd prod.env react-app-rewired build",
"dev": "env-cmd dev.env react-app-rewired build",
"test": "env-cmd prod.env react-app-rewired test",
"prettier": "prettier \"./src/**/*.{ts,tsx}\" --write",
"lint": "tslint \"./src/**/*.{ts,tsx}\" --fix"
},
"husky": {
"hooks": {
"pre-commit": "npm run prettier"
}
},
"dependencies": {
"@types/jest": "^24.0.12",
"@types/lodash-es": "^4.17.3",
"@types/node": "^11.13.8",
"@types/react": "^16.8.15",
"@types/react-dom": "^16.8.4",
"@types/react-jsonschema-form": "^1.3.2",
"@types/react-router-dom": "^4.3.2",
"antd": "^3.16.6",
"axios": "^0.18.0",
"babel-plugin-import": "^1.11.0",
"customize-cra": "^0.2.12",
"history": "^4.9.0",
"less": "^3.9.0",
"less-loader": "^5.0.0",
"lodash-es": "^4.17.11",
"mobx": "^5.9.4",
"mobx-react": "^5.4.3",
"mobx-react-lite": "^1.3.1",
"mobx-react-router": "^4.0.7",
"moment": "^2.24.0",
"prettier": "^1.17.0",
"react": "^16.8.2",
"react-app-rewired": "^2.1.3",
"react-dom": "^16.8.2",
"react-hot-loader": "^4.8.4",
"react-jsonschema-form": "^1.5.0",
"react-router": "^5.0.0",
"react-router-dom": "^5.0.0",
"react-scripts": "3.0.0",
"typescript": "^3.4.5"
},
"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"
]
},
"devDependencies": {
"env-cmd": "^8.0.2",
"husky": "^2.2.0",
"tslint": "^5.16.0",
"tslint-react": "^4.0.0"
}
}
我想我应该添加错误日志,但这是800kb的文本
第一行就是这样
6008愚蠢的分解动作最终确定resolve-cwd@2.0.0
然后
11814愚蠢地安装executeActions
11816详细的correctMkdir C:\ Users \ Ivan \ AppData \ Roaming \ npm-cache_lockscorrectMkdir不在运行中;初始化
然后类似的东西
文件尾
15545警告可选的跳过选择性依赖性:fsevents@1.2.8(node_modules \ chokidar \ node_modules \ fsevents):
15546警告可选的跳过选择性依赖项:忙:资源繁忙或锁定,重命名'I:\ js \ promo \ node_modules.staging \ fsevents- 58f790e8 \ node_modules \ aproba'->'I:\ js \ promo \ node_modules.staging \ aproba-1d87c747'
15547警告可选的跳过选择性依赖性:fsevents@1.2.8(node_modules \ jest-haste-map \ node_modules \ fsevents):
15548警告可选的跳过可选依赖项:忙:资源繁忙或锁定,重命名为'I:\ js \ promo \ node_modules.staging \ fsevents- 14a87c54 \ node_modules \ aproba'->'I:\ js \ promo \ node_modules.staging \ aproba-22d120c7'
15549详细堆栈RangeError:超出了最大调用堆栈大小
RegExp.test()上的15549详细堆栈
isDepOptional上的15549详细堆栈(C:\ Program Files \ nodejs \ node_modules \ npm \ lib \ install \ deps.js:423:45)
failedDependency下的15549详细堆栈(C:\ Program Files \ nodejs \ node_modules \ npm \ lib \ install \ deps.js:432:9)
多行: 15549详细堆栈处于failedDependency(C:\ Program Files \ nodejs \ node_modules \ npm \ lib \ install \ deps.js:448:9)
15550详细的CWD I:\ js \ promo
15551详细的Windows_NT 10.0.14393
15552详细argv“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js”“安装”
15553详细节点v10.16.0
15554详细npm v6.9.0
15555错误超出了最大调用堆栈大小
15556详细出口[1,正确]
实际上,很抱歉,我无法为您提供普通类型的日志文件,请给我一些建议。
所以提到另一个问题是行不通的,但是可能我做错了事
npm卸载 npm缓存清理--force npm install
并且有效
可能,我之前写过的一些步骤奏效了,但我并不介意。
谢谢