赞
踩
git clone https://github.com/continuedev/continue.git
下载地址为:
https://win.rustup.rs/
下载后直接双击运行即可
期间可能会因为网络原因安装依赖报错,需要多试几次
执行
vsce package
报错 > node build.js [info] Copied [info] Downloading prebuilt lancedb... [info] Downloading darwin-x64... npm WARN using --force Recommended protections disabled. [info] Downloading darwin-arm64... npm WARN using --force Recommended protections disabled. [info] Downloading linux-x64... npm WARN using --force Recommended protections disabled. [info] Downloading linux-arm64... npm WARN using --force Recommended protections disabled. [info] Downloading win32-x64... npm WARN using --force Recommended protections disabled. [info] Building with esbuild... X [ERROR] No loader is configured for ".bak" files: node_modules/win-ca/lib/crypt32-x64.node.bak node_modules/win-ca/lib/n-api.js:3:18: 3 │ crypt32 = require("./crypt32-" + process.arch); ╵ ~~~~~~~~~~~~ X [ERROR] No loader is configured for ".bak" files: node_modules/win-ca/lib/crypt32-ia32.node.bak node_modules/win-ca/lib/n-api.js:3:18: 3 │ crypt32 = require("./crypt32-" + process.arch); ╵ ~~~~~~~~~~~~ E:\Users\18640\Desktop\workspace\create\dmcode\binary\node_modules\esbuild\lib\main.js:1651 let error = new Error(text); ^ Error: Build failed with 2 errors: node_modules/win-ca/lib/n-api.js:3:18: ERROR: No loader is configured for ".bak" files: node_modules/win-ca/lib/crypt32-ia32.node.bak node_modules/win-ca/lib/n-api.js:3:18: ERROR: No loader is configured for ".bak" files: node_modules/win-ca/lib/crypt32-x64.node.bak at failureErrorWithLog (E:\Users\18640\Desktop\workspace\create\dmcode\binary\node_modules\esbuild\lib\main.js:1651:15) at E:\Users\18640\Desktop\workspace\create\dmcode\binary\node_modules\esbuild\lib\main.js:1059:25 at E:\Users\18640\Desktop\workspace\create\dmcode\binary\node_modules\esbuild\lib\main.js:1004:52 at buildResponseToResult (E:\Users\18640\Desktop\workspace\create\dmcode\binary\node_modules\esbuild\lib\main.js:1057:7) at E:\Users\18640\Desktop\workspace\create\dmcode\binary\node_modules\esbuild\lib\main.js:1086:16 at responseCallbacks.<computed> (E:\Users\18640\Desktop\workspace\create\dmcode\binary\node_modules\esbuild\lib\main.js:704:9) at handleIncomingPacket (E:\Users\18640\Desktop\workspace\create\dmcode\binary\node_modules\esbuild\lib\main.js:764:9) at Socket.readFromStdout (E:\Users\18640\Desktop\workspace\create\dmcode\binary\node_modules\esbuild\lib\main.js:680:7) at Socket.emit (node:events:518:28) at addChunk (node:internal/streams/readable:559:12) { errors: [Getter/Setter], warnings: [Getter/Setter] } Node.js v20.11.1
删除binary目录下的node_modules并重新执行脚本
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。