当前位置:   article > 正文

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

continue插件

1.下载代码

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

2. 安装cargo

下载地址为:

https://win.rustup.rs/
  • 1

下载后直接双击运行即可

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

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

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

执行

vsce package
  • 1

执行中存在的问题

报错
> 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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50

删除binary目录下的node_modules并重新执行脚本

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号