当前位置:网站首页>vsce package 后出现 Command failed: npm list --production --parseable --depth=99999 --loglevel=error异常
vsce package 后出现 Command failed: npm list --production --parseable --depth=99999 --loglevel=error异常
2022-08-01 05:18:00 【集电极】
vsce package 后出现 Command failed: npm list --production --parseable --depth=99999 --loglevel=error 。missing: [email protected]^2.10.0, required by [email protected]
说明,我是在尝试打包VScode插件时弹出这个错误
我在网上搜索资料发现 Command failed: npm list --production --parseable --depth=99999 --loglevel=error 很多情况都可能导致这个错误。请大家注意甄别情况。
原因
经过我排除发现,我出现这个错误的原因时因为我一开始安装 vsce 包时是当前位置安装,后面我觉得不妥就改为全局安装。然后错误的操作来了,我没有卸载当前位置安装的 vsce, 而是直接删除了node_modules 文件夹。 就是没有卸载再删除,导致 vsce package 命令不能正确执行,从而出现错误。
解决方法
重新在当前位置安装 vsce 包,npm install vsce,
使用 npm uninstall vsce 卸载。
最后可以选择删除 node_modules 文件夹。
边栏推荐
猜你喜欢

Selenium: Manipulating Cookies

AspNet.WebApi.Owin 自定义Token请求参数

字符中的第一个唯一字符

(Codeforce 757) E. Bash Plays with Functions

typescript23-tuple

High Numbers | 【Re-integration】Line Area Score 880 Examples

typescript21 - Comparison of Interfaces and Type Aliases

What should I do if the neural network cannot be trained?

2022年超全的Android面经(附含面试题|进阶资料)

pytroch、tensorflow对比学习—搭建模型范式(构建模型方法、训练模型范式)
随机推荐
Selenium:操作Cookie
(2022 Niu Ke Duo School IV) K-NIO's Sword (Thinking)
API Design Notes: The pimpl trick
Li Chi's work and life summary in July 2022
Selenium:下拉框操作
Selenium: Manipulating Cookies
报错:AttributeError: module ‘matplotlib’ has no attribute ‘figure’
pytroch、tensorflow对比学习—功能组件(数据管道、回调函数、特征列处理)
CSP-S2019 Day1
The difference between scheduleWithFixedDelay and scheduleAtFixedRate
leetcode43 字符串相乘
微信小程序获取手机号phonenumber.getPhoneNumber接口开发
微信小程序用户登录auth.code2Session接口开发
Selenium:上传、下载文件
WPF项目-初步了解数据绑定 binding
DL-31/6电流继电器
25. Have you been asked these three common interview questions?
Selenium: browser operation
II. Binary tree to Offer 68 - recent common ancestor
Robot_Framework: commonly used built-in keywords