![](/img/trans.png)
[英]I am trying to clone project from bitbucket and running in VS Code while doing npm install showing a lot of errors, warning
[英]I am cloning a repository from Bitbucket but getting these errors while installing dependencies
這個項目是在nodeJS中構建的,當我安裝依賴項時使用Mysql作為后端,這給了我錯誤我在我的電腦中安裝了nodejs 16.15.1,並且package.json包括mysql版本2.15.0,
我在這里做了什么,我使用 HTTPS 從 bitbucket 克隆了這個項目,並嘗試使用npm install
安裝依賴項,之后它返回了大量錯誤
這是該圖像的屏幕截圖這是 pack.json 文件
您正在使用的依賴項已過時,或者可能會轉移到具有不同名稱的另一個版本。
應用這些解決方案:
記住依賴項的名稱,然后將其從 package.json 中刪除,然后使用它們的名稱安裝它,無需指定它們的版本號。
一些依賴項轉移到其他名稱,因此搜索它們的更新名稱,然后使用更新的名稱安裝它
嗨,Yogesh Kumar,您能提供錯誤的屏幕截圖嗎? 但可能是您的錯誤解決方法:
克隆存儲庫時,您會在本地系統上創建 Bitbucket 存儲庫的副本。 克隆還連接遠程和本地存儲庫,以便您可以開始在兩個地方之間推送和拉取更改。 克隆一個 Git 存儲庫
您可以使用終端、SourceTree 或任何其他您想要克隆 Git 存儲庫的客戶端。 這些說明向您展示了如何從終端使用 Git 克隆您的存儲庫。
In the repository, select the Clone button.
Copy the clone command.
From a terminal window, change into the local directory where you want to clone your repository.
$ cd <path_to_directory>
Paste the command you copied from Bitbucket, for example:
$ git clone https://username@bitbucket.org/teamsinspace/documentation-tests.git
如果克隆成功,本地驅動器上會出現一個新的子目錄,其名稱與您克隆的存儲庫相同。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.