continue插件二次开发调试并打包

1.下载代码

git clone https://github.com/continuedev/continue.git

2. 安装cargo

下载地址为:

https://win.rustup.rs/

下载后直接双击运行即可

3. 执行porweshell脚本install-dependencies.ps1

期间可能会因为网络原因安装依赖报错,需要多试几次在这里插入图片描述

4. 进入到continue\extensions\vscode目录下

执行

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并重新执行脚本

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值