我从来没有在vscode分机和nodejs/npm分机工作过

我正在try 编译这个扩展:

我已经下载了nodejs,安装了,然后我下载了扩展源,open cmd:

cd 'folder where is the extension src' > npm install package.json

它安装并创建了一个文件夹node_modules

我做得对吗?接下来的步骤是什么?

推荐答案

  1. The easiest way will be from the extension directory in your VSCode, you can open that using one of these three ways:
    a. View > Extension
    b. From sidebar, click on extension icon
    c. CTRL + Shift + x

然后搜索带有引号的"排水沟预览",你会得到一个名为"图像预览"的结果,即扩展,只需单击"安装".

  1. Another way is visit this url
    https://marketplace.visualstudio.com/items?itemName=kisstkondoros.vscode-gutter-preview. Then press on 'Download Extension' on the right hand side, download the file then inside your vscode open the command pallet (CTRL + Shift + p) and type: extensions install from vsix, click that command, then choose the .VSIX file you just downloaded.

  2. 最后,如果必须从github repo执行此操作,则在运行npm install并找到node_modules目录的目录中,运行npm run webpack-prod(在项目文件夹根目录的package.json文件中指定的命令,该命令描述了如何构建应用程序).然后,您应该在项目的./dist/extension目录中找到一个.VSIX文件,并对生成的.VSIX文件应用步骤2

Node.js相关问答推荐

当建议在第二代上运行云功能时,现在是否有新的Firestore AdminClient可供使用?

Express 4.18正文解析

如何将信号从终端窗口发送到运行在Raspberry Pi上的Puppeteer/Node.js上的webscraper

Node.js PNG缓冲区获取未知图像格式错误

设置默认 node 版本

FiRestore UPDATE方法引发错误:&Quot;错误:13内部:收到代码为1&Quot;的RST_STREAM

如何在Mongoose for MongoDB中编写此查询

结合后端(Express)和前端(Angular)路由

如何使用 node.js 将两个或多个 API 请求组合成一个端点并表达

多字段传递获取查询失败

使用 firebase 函数 api 运行套接字(相同的端口创建问题)

无法通过谷歌Electron 表格 api( node js)中的服务帐户访问写入

如何在 Node.js 中逐字节读取二进制文件

制作一个接受命令行参数的脚本

Node.js + Express 上的多个视图路径

使用 Webpack 和 font-face 加载字体

tsconfig.json 中模块类型的区别

如何在离线时安装 npm 包?

`return function *(){...}` 是什么意思?

在 Node.js 中获取终端的宽度