We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloading webpack to C:\Program Files\nodejs\node_global\node_modules\webpack_tmp Copying C:\Program Files\nodejs\node_global\node_modules\webpack_tmp\.store\webpack@5.75.0\node_modules\webpack to C:\Program Files\nodejs\node_global\node_modules\webpack Installing webpack's dependencies to C:\Program Files\nodejs\node_global\node_modules\webpack/node_modules [1/24] json-parse-even-better-errors@^2.3.1 installed at node_modules\.store\json-parse-even-better-errors@2.3.1\node_modules\json-parse-even-better-errors [2/24] glob-to-regexp@^0.4.1 installed at node_modules\.store\glob-to-regexp@0.4.1\node_modules\glob-to-regexp [3/24] loader-runner@^4.2.0 installed at node_modules\.store\loader-runner@4.3.0\node_modules\loader-runner [4/24] @types/estree@^0.0.51 installed at node_modules\.store\@types+estree@0.0.51\node_modules\@types\estree [5/24] chrome-trace-event@^1.0.2 installed at node_modules\.store\chrome-trace-event@1.0.3\node_modules\chrome-trace-event [6/24] graceful-fs@^4.2.9 installed at node_modules\.store\graceful-fs@4.2.10\node_modules\graceful-fs [7/24] es-module-lexer@^0.9.0 installed at node_modules\.store\es-module-lexer@0.9.3\node_modules\es-module-lexer [8/24] watchpack@^2.4.0 installed at node_modules\.store\watchpack@2.4.0\node_modules\watchpack [9/24] tapable@^2.1.1 installed at node_modules\.store\tapable@2.2.1\node_modules\tapable [10/24] acorn@^8.7.1 installed at node_modules\.store\acorn@8.8.2\node_modules\acorn [11/24] acorn-import-assertions@^1.7.6 installed at node_modules\.store\acorn-import-assertions@1.8.0\node_modules\acorn-import-assertions [12/24] mime-types@^2.1.27 installed at node_modules\.store\mime-types@2.1.35\node_modules\mime-types [13/24] webpack-sources@^3.2.3 installed at node_modules\.store\webpack-sources@3.2.3\node_modules\webpack-sources [14/24] events@^3.2.0 installed at node_modules\.store\events@3.3.0\node_modules\events [15/24] @types/eslint-scope@^3.7.3 installed at node_modules\.store\@types+eslint-scope@3.7.4\node_modules\@types\eslint-scope [16/24] enhanced-resolve@^5.10.0 installed at node_modules\.store\enhanced-resolve@5.12.0\node_modules\enhanced-resolve [17/24] eslint-scope@5.1.1 installed at node_modules\.store\eslint-scope@5.1.1\node_modules\eslint-scope [18/24] @webassemblyjs/wasm-edit@1.11.1 installed at node_modules\.store\@webassemblyjs+wasm-edit@1.11.1\node_modules\@webassemblyjs\wasm-edit [19/24] @webassemblyjs/wasm-parser@1.11.1 installed at node_modules\.store\@webassemblyjs+wasm-parser@1.11.1\node_modules\@webassemblyjs\wasm-parser [20/24] neo-async@^2.6.2 installed at node_modules\.store\neo-async@2.6.2\node_modules\neo-async [21/24] @webassemblyjs/ast@1.11.1 installed at node_modules\.store\@webassemblyjs+ast@1.11.1\node_modules\@webassemblyjs\ast [22/24] schema-utils@^3.1.0 installed at node_modules\.store\schema-utils@3.1.1\node_modules\schema-utils [23/24] terser-webpack-plugin@^5.1.3 installed at node_modules\.store\terser-webpack-plugin@5.3.6\node_modules\terser-webpack-plugin [24/24] browserslist@^4.14.5 installed at node_modules\.store\browserslist@4.21.5\node_modules\browserslist > webpack@5.75.0 prepare C:\Program Files\nodejs\node_global\node_modules\webpack > husky install 'husky' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 [npminstall:runscript:error] webpack@5.75.0 run prepare husky install error: Error: Command failed with exit code 1: husky install at makeError (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\execa\lib\error.js:60:11) at handlePromise (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\execa\index.js:118:26) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.exports.runScript (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\lib\utils.js:262:12) at async runLifecycleScripts (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\lib\lifecycle_scripts.js:64:7) at async _install (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\lib\local_install.js:167:5) at async module.exports (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\lib\local_install.js:86:5) at async module.exports (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\lib\global_install.js:71:5) at async C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\bin\install.js:365:5 { shortMessage: 'Command failed with exit code 1: husky install', command: 'husky install', escapedCommand: 'husky install', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: undefined, stderr: undefined, failed: true, timedOut: false, isCanceled: false, killed: false } > webpack@5.75.0 prepare, finished in 39ms Install fail! Error: run prepare error, please remove node_modules before retry! Command failed with exit code 1: husky install Error: Command failed with exit code 1: husky install at makeError (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\execa\lib\error.js:60:11) at handlePromise (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\execa\index.js:118:26) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.exports.runScript (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\lib\utils.js:262:12) at async runLifecycleScripts (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\lib\lifecycle_scripts.js:64:7) at async _install (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\lib\local_install.js:167:5) at async module.exports (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\lib\local_install.js:86:5) at async module.exports (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\lib\global_install.js:71:5) at async C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\bin\install.js:365:5 npminstall version: 7.5.1 npminstall argv: C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\Administrator\.cnpmrc --disturl=https://npmmirror.com/mirrors/node --registry=https://registry.npmmirror.com webpack -g
The text was updated successfully, but these errors were encountered:
fix: should not run prepare in a production or global package (#451)
8c5520d
close cnpm/cnpm#407 Co-authored-by: 天玎 <tianding.wk@antgroup.com>
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: