当前位置:网站首页>npm ERR! 400 Bad Request - PUT xxx - “devDependencies“ dep “xx“ is not a valid dependency name
npm ERR! 400 Bad Request - PUT xxx - “devDependencies“ dep “xx“ is not a valid dependency name
2022-07-06 22:14:00 【自夏】
由于在开发npm包 是使用TS 开发的,使用 node xx.js 无法编译TS 文件 需要安装 ts-node 包来编译TS 文件, ts-node xx.ts
当使用命令提交代码到npm 上面时出现了得错误
npm ERR! code E400
npm ERR! 400 Bad Request - PUT https://registry.npmjs.org/jsbusiness - “devDependencies” dep “@ts-node” is not a valid dependency name.
翻译
npm犯错! 400 Bad Request - PUT https://registry.npmjs.org/jsbusiness -“devDependencies”dep“@ts-node”不是一个有效的依赖名称。
因为在 devDependencies (开发环境依赖模块)安装了ts-node 这样的不是代码模块的包,所以使用npm 提交的时候 给我们了错误提示,告诉我们 在 开发环境依赖模块 (devDependencies)里 存在不是代码依赖的包
把提示的依赖模块在 package.json 中找到,并删除即可
边栏推荐
- Depth first traversal template principle of tree and graph
- Jetson nano配置pytorch深度学习环境//待完善
- 【实践出真理】import和require的引入方式真的和网上说的一样吗
- EasyCVR集群版本添加RTSP设备提示服务器ID错误,该如何解决?
- Basic idea of counting and sorting
- NTU notes 6422quiz review (1-3 sections)
- 计数排序基础思路
- [team learning] [phase 34] Baidu PaddlePaddle AI talent Creation Camp
- AI landing new question type RPA + AI =?
- Thesis landing strategy | how to get started quickly in academic thesis writing
猜你喜欢
EasyCVR无法使用WebRTC进行播放,该如何解决?
[line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III
【线段树实战】最近的请求次数 + 区域和检索 - 数组可修改+我的日程安排表Ⅰ/Ⅲ
Section 1: (3) logic chip process substrate selection
On the 110th anniversary of Turing's birth, has the prediction of intelligent machine come true?
EasyCVR视频广场点击播放时,主菜单高亮效果消失问题的修复
kivy教程之设置窗体大小和背景(教程含源码)
九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」
Network Security Learning - Information Collection
C # use Siemens S7 protocol to read and write PLC DB block
随机推荐
Basic idea of counting and sorting
How to solve the problem of adding RTSP device to easycvr cluster version and prompting server ID error?
深入解析Kubebuilder
Windows are not cheap things
MySQL数据库(基础篇)
一度辍学的数学差生,获得今年菲尔兹奖
Field data acquisition and edge calculation scheme of CNC machine tools
[practice leads to truth] is the introduction of import and require really the same as what is said on the Internet
Oracle -- 视图与序列
Network Security Learning - Information Collection
EasyCVR视频广场点击播放时,主菜单高亮效果消失问题的修复
广告归因:买量如何做价值衡量?
Flex layout and usage
Poor math students who once dropped out of school won the fields award this year
Data security -- 12 -- Analysis of privacy protection
Organize five stages of actual attack and defense drill
System framework of PureMVC
Unit test asp Net MVC 4 Application - unit testing asp Net MVC 4 apps thoroughly
What about the collapse of win11 playing pubg? Solution to win11 Jedi survival crash
程序员上班摸鱼,这么玩才高端!