当前位置:网站首页>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 中找到,并删除即可
边栏推荐
- The easycvr platform is connected to the RTMP protocol, and the interface call prompts how to solve the error of obtaining video recording?
- How does vscade use the built-in browser?
- Vscode 如何使用内置浏览器?
- MySQL null value processing and value replacement
- Web3 社区中使用的术语
- Complimentary tickets quick grab | industry bigwigs talk about the quality and efficiency of software qecon conference is coming
- Chapter 9 Yunji datacanvas company has been ranked top 3 in China's machine learning platform market
- 计数排序基础思路
- 图灵诞辰110周年,智能机器预言成真了吗?
- A detailed explanation of head pose estimation [collect good articles]
猜你喜欢
AI 落地新题型 RPA + AI =?
Network Security Learning - Information Collection
Kivy tutorial of setting the size and background of the form (tutorial includes source code)
深入解析Kubebuilder
What if the win11 screenshot key cannot be used? Solution to the failure of win11 screenshot key
EasyCVR集群重启导致其他服务器设备通道状态离线情况的优化
What about the collapse of win11 playing pubg? Solution to win11 Jedi survival crash
Introduction to namespace Basics
用CPU方案打破内存墙?学PayPal堆傲腾扩容量,漏查欺诈交易量可降至1/30
Win11截图键无法使用怎么办?Win11截图键无法使用的解决方法
随机推荐
leetcode 53. Maximum Subarray 最大子数组和(中等)
Some understandings about 01 backpacker
一度辍学的数学差生,获得今年菲尔兹奖
EasyCVR无法使用WebRTC进行播放,该如何解决?
程序员上班摸鱼,这么玩才高端!
leetcode 53. Maximum subarray maximum subarray sum (medium)
Gpt-3 is a peer review online when it has been submitted for its own research
未婚夫捐5亿美元给女PI,让她不用申请项目,招150位科学家,安心做科研!
Camera calibration (I): robot hand eye calibration
微信能开小号了,拼多多“砍一刀”被判侵权,字节VR设备出货量全球第二,今日更多大新闻在此
[team learning] [34 issues] scratch (Level 2)
【线段树实战】最近的请求次数 + 区域和检索 - 数组可修改+我的日程安排表Ⅰ/Ⅲ
Programmers go to work fishing, so play high-end!
R language principal component PCA, factor analysis, clustering analysis of regional economy analysis of Chongqing Economic Indicators
[team learning] [phase 34] Baidu PaddlePaddle AI talent Creation Camp
kivy教程之设置窗体大小和背景(教程含源码)
Terms used in the Web3 community
Complimentary tickets quick grab | industry bigwigs talk about the quality and efficiency of software qecon conference is coming
Introduction to the PureMVC series
Vscode 如何使用内置浏览器?