简体   繁体   English

我正在尝试从 bitbucket 克隆项目并在 VS Code 中运行,同时执行 npm 安装显示很多错误,警告

[英]I am trying to clone project from bitbucket and running in VS Code while doing npm install showing a lot of errors, warning

I have project on bitbucket and trying to clone it, the project is very older 3 year old so might be some packages do get old.我在 bitbucket 上有一个项目并试图克隆它,这个项目已经有 3 年的历史了,所以可能有些包确实变老了。 But while I am doing npm install so it is showing a lot of warning and errors.但是当我进行npm install时,它显示了很多警告和错误。 Also the project at beginning made with Yarn not NPM.另外项目一开始是用 Yarn 做的,不是 NPM。

Some warning and error looks like:一些警告和错误看起来像:

npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.3: this library is no longer supported
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fe
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7[1] || >=4 <4.3.1 have a low-severity ReDos regression when used incommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)

Remove your package-lock.json and then execute npm install (or yarn install if you prefer).删除您的package-lock.json然后执行npm install (如果您愿意,也可以执行 yarn yarn install )。

Have in mind that being this an old project.请记住,这是一个旧项目。 Some of the packages passed for major changes and may possibly not run as expected anymore.一些软件包通过了重大更改,可能不再按预期运行。 Major changes are not necessarily backward compatible, so you may have to change a lot of code in order to make your code work.重大更改不一定向后兼容,因此您可能必须更改大量代码才能使您的代码正常工作。 Be ready to have a lot of fun coding!准备好享受很多有趣的编码吧!

EDIT: Considering the package.json you posted in a comment, my suggestion is creating a new app using npx create-react-app and then moving your ReactJS code to it.编辑:考虑到您在评论中发布的package.json ,我的建议是使用npx create-react-app创建一个新应用,然后将您的 ReactJS 代码移至其中。 This way you would have a completely updated app and would have only to review your code.这样您将拥有一个完全更新的应用程序,并且只需要检查您的代码。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我正在尝试在可视代码中运行命令 npm install 但它向我显示了这个错误 - i am trying to run the command npm install in visual code but it is showing me this error 如何修复此错误我正在通过编写 npm install express --save on vs code terminal 来安装 express。我正在尝试在 E 上安装 - How to fix this error i am getting on installing express by writing npm install express --save on vs code terminal.i am trying to install on E 在 angular 项目上运行 npm install 时出错 - Error while running npm install on angular project 在我的项目中安装时出现一些错误,gyp 错误代码 1 - Getting some errors while doing install in my project,gyp error code 1 我正在从 Bitbucket 克隆存储库,但在安装依赖项时遇到这些错误 - I am cloning a repository from Bitbucket but getting these errors while installing dependencies 我试图将CORS正确地实现到我的JavaScript代码,并且工作了一段时间,我相信项目中缺少一些文件吗? - I am trying to implement CORS to my JavaScript code correctly, and it worked for a while, I believe I am missing some file from the project? 尝试添加警告以防止用户在提交之前离开表单。 我究竟做错了什么? - Trying to add a warning to prevent users from leaving a form before submitting. What am I doing wrong? 我正在 Visual Studio 代码中安装聚合物,但有很多错误我收到了很多错误 - I am installing polymer in visual studio code but there are many errors I am getting a lot of errors 运行 npm install 时出现一堆错误 - I get a bunch of errors when running npm install 我在我的小项目 Calculator 上执行 JavaScript 实现时遇到了一些错误。 伙计们,你能帮帮我吗? - I am encountering some errors while doing the JavaScript implementation on my little project, Calculator. Can you help me, guys?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM