惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
爱范儿
爱范儿
D
Docker
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
D
DataBreaches.Net
月光博客
月光博客
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
Visual Studio Blog
MyScale Blog
MyScale Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学

姓王者的博客

Linux用户Secure Boot自主维护指南 | 姓王者的博客 MAD Bugs 已经开始——关于信息安全的军备竞赛 | 姓王者的博客 解决钉钉Dingtalk无法在Linux新版内核上启动问题-修复可执行栈错误 | 姓王者的博客 突发:GitHub 正遭受大规模 Issue 赌博广告轰炸 | 姓王者的博客 Ubuntu26.04-beta体验:坚毅浣熊! | 姓王者的博客 fakeclaw装作龙虾发贴吧 | 姓王者的博客 找回12年前的QQ记忆 | 姓王者的博客 在Linux上玩Flash网页游戏-洛克王国 | 姓王者的博客 Copilot将使用交互数据来训练 | 姓王者的博客 重要通知-请更新我的GPG公钥 | 姓王者的博客 为了自由Android | 姓王者的博客 GPL"2,3"事 | 姓王者的博客 短文-对VitePlus的一点🤏小贡献 | 姓王者的博客 Bing收录没了?亲测有效的快速恢复指南 | 姓王者的博客 解决桌面设备二维码快速识别的工具-ClipQR | 姓王者的博客 解决 Nautilus 自定义终端插件安装依赖问题 | 姓王者的博客 OpenClaw 该熄火了 | 姓王者的博客 Vite8 - 统一的基建开始 | 姓王者的博客 Astro 6 推出啦 | 姓王者的博客 ubuntu的openvpn异常暂停推送更新 | 姓王者的博客 Ubuntu 24.04 安装 Win10 虚拟机 | 姓王者的博客 ESA-后记:热爱阿里云 | 姓王者的博客 Moonbit 0.8.0 重大发布,我也要改一下我的包 | 姓王者的博客 ESA Pages 边缘开发大赛获奖 | 姓王者的博客 Astro: 优化katex,mermaid和灯箱使用 | 姓王者的博客 从edgeone迁移到esa | 姓王者的博客 出租人类:AI时代的荒诞与真实 | 姓王者的博客 Astro 5.17构建性能优化实践:从18s到13s | 姓王者的博客 Moonbit License Checker 开发使用 | 姓王者的博客 Stalux Astro博客主题自荐 | 姓王者的博客
解决在ubuntu上,打包vscode插件问题 | 姓王者的博客
作者:xingwangzhe · 2025-08-18 · via 姓王者的博客

🕒 阅读时间:1 分钟 📝 字数:256 👀 阅读量: Loading...

ERROR: Extension entrypoint(s) missing. Make sure these files exist and aren’t ignored by ‘.vscodeignore’: extension/dist/extension.js

这是我遇到的报错,关于如何解决该报错,请看下面

省流

解决方案

2025-08-18-20-22-14

正如这位所说

我不知道为什么,但在这种情况下,Linux上的默认npm和node版本似乎不能正常工作。就像在错误扩展入口点(s)丢失,而我试图用vsce包装开发的vscode扩展 我完全从我的系统中卸载了node和npm,甚至从我的全局 node_modules 中删除了 npm 目录,然后按照https://github.com odesource/distributions#using-ubuntu上的指南重新安装了所有内容。现在突然起作用了……

删除ubuntu原始node

一般都是通过snap安装的,可以轻松地从商店卸载,或者使用命令来卸载

访问nodesource

根据它们提供的文档,安装

# Node.js v22.x:

#Using Ubuntu (Node.js 22)

#Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo apt install -y curl

#Download the setup script:

curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh

#Run the setup script with sudo:

sudo -E bash nodesource_setup.sh

sudo apt install -y nodejs

# Verify the installation:

node -v

此时使用vsce pack打包就不会出现异常了

至此基本解决问题

参考

解决方案