国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

vue項(xiàng)目git clone后,npm i報(bào)錯(cuò)

這篇具有很好參考價(jià)值的文章主要介紹了vue項(xiàng)目git clone后,npm i報(bào)錯(cuò)。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

報(bào)錯(cuò)一:npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!

錯(cuò)誤信息:

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm ERR! code EINTEGRITY
npm ERR! sha512-gstzbTWro2/nFed1WXtf+TtrpwxH7Ggs4RLYTLbeVgIkUQOI3WG/JKjgeOU1zXDvezllupjrf8OPIdvTbIaVOQ== integrity checksum failed when using sha512: wanted sha512-gstzbTWro2/nFed1WXtf+TtrpwxH7Ggs4RLYTLbeVgIkUQOI3WG/JKjgeOU1zXDvezllupjrf8OPIdvTbIaVOQ== but got sha512-DxMhY+NAsTwMMFHBTtJFNp5qiHKJ7TeqOo23zVEM9alT1Ml27Q3xcTH0xwxn7Q0BbMcVEJOs/7aQtUWupUQN3Q==. (11952 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\lmf\AppData\Roaming\npm-cache\_logs\2023-03-09T06_38_33_535Z-debug.log

原因:npm版本不對(duì),需要更新

npm install -g npm

又報(bào)錯(cuò):node版本也太低

npm WARN notsup Unsupported engine for npm@9.6.1: wanted: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"} (current: {"node":"12.18.3","npm":"6.14.6"})
npm WARN notsup Not compatible with your version of node/npm: npm@9.6.1

npm ERR! code EPERM
npm ERR! syscall rename
npm ERR! path C:\Users\lmf\AppData\Roaming\npm\node_modules\npm\node_modules\.node-gyp.DELETE\node_modules\@npmcli
npm ERR! dest C:\Users\lmf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\node_modules\@npmcli
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\lmf\AppData\Roaming\npm\node_modules\npm\node_modules\.node-gyp.DELETE\node_modules\@npmcli' -> 'C:\Users\lmf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\node_modules\@npmcli'   
npm ERR!  [OperationalError: EPERM: operation not permitted, rename 'C:\Users\lmf\AppData\Roaming\npm\node_modules\npm\node_modules\.node-gyp.DELETE\node_modules\@npmcli' -> 'C:\Users\lmf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\node_modules\@npmcli'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, rename 'C:\Users\lmf\AppData\Roaming\npm\node_modules\npm\node_modules\.node-gyp.DELETE\node_modules\@npmcli' -> 'C:\Users\lmf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\node_modules\@npmcli'] {
npm ERR!     errno: -4048,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'rename',
npm ERR!     path: 'C:\\Users\\lmf\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\.node-gyp.DELETE\\node_modules\\@npmcli',
npm ERR!     dest: 'C:\\Users\\lmf\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\node_modules\\@npmcli'     
npm ERR!   },
npm ERR!   errno: -4048,
npm ERR!   syscall: 'rename',
npm ERR!   path: 'C:\\Users\\lmf\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\.node-gyp.DELETE\\node_modules\\@npmcli',
npm ERR!   dest: 'C:\\Users\\lmf\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\node_modules\\@npmcli',      
npm ERR!   parent: 'npm'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

先更新node

更新方法一:

npm install -g n --force后報(bào)錯(cuò)

PS D:\kaikeba\projects\vue-trello-backend> n stable     
n : 無(wú)法加載文件 C:\Users\lmf\AppData\Roaming\npm\n.ps1,因?yàn)樵诖讼到y(tǒng)上禁止運(yùn)行腳本。有關(guān)詳細(xì)信息,請(qǐng)參閱 https:/go.microsoft.co
m/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
+ n stable
+ ~
    + CategoryInfo          : SecurityError: (:) [],PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

直接官網(wǎng)下載重新安裝:下載 | Node.js

安裝好后,再次執(zhí)行npm install -g npm,成功

npm與node版本不一致:查找版本對(duì)應(yīng)關(guān)系的地址:以往的版本 | Node.js

vue項(xiàng)目git clone后,npm i報(bào)錯(cuò),其他,vue.js,git,javascript

?報(bào)錯(cuò)二:從git拉取項(xiàng)目npm install 提示The package-lock.json file was created with an old version of npm

使用npm i 后報(bào)警告和錯(cuò)誤

npm ERR! code 1
npm ERR! path C:\Users\li-671\Downloads\light-blue-vue-admin-master\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\li-671\Downloads\light-blue-vue-admin-master\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok

能是node.js的版本和node-sass的版本不合

找到node.js和node-sass對(duì)應(yīng)版本:以往的版本 | Node.js?

然后下載node.js:?Index of /download/release/v14.21.3/

將環(huán)境變量中的node.js路徑換成下載的對(duì)應(yīng)node版本

vue項(xiàng)目git clone后,npm i報(bào)錯(cuò),其他,vue.js,git,javascript

使用npm i 更新

?報(bào)錯(cuò)三:安裝node-sass時(shí)報(bào)錯(cuò),gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT HON env variable.

原因:電腦上沒(méi)有Python環(huán)境,需要安裝編譯環(huán)境

解決:執(zhí)行npm install --global?--production windows-build-tools 即可

參考:gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT HON env variable._蘭若惜的博客-CSDN博客文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-627070.html

到了這里,關(guān)于vue項(xiàng)目git clone后,npm i報(bào)錯(cuò)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • git clone拉取項(xiàng)目報(bào)錯(cuò)Filename too long warning:Clone succeeded,but checkout failed

    這個(gè)坑可太坑了~ 首先原因是:拉取項(xiàng)目中有文件名過(guò)大,導(dǎo)致拉取項(xiàng)目中斷,文件拉取不完全的情況。 1、報(bào)錯(cuò)信息如下: 2、解決方法,找到你要存放代碼的文件夾,打開(kāi)git命令執(zhí)行窗口,執(zhí)行以下代碼: 3、最后再次正常git clone代碼( 注意把之前clone的代碼刪掉 ) 旨在分

    2024年04月25日
    瀏覽(26)
  • vue將某個(gè)組件打包成js,在其他項(xiàng)目使用

    vue將某個(gè)組件打包成js,在其他項(xiàng)目使用

    1、首先創(chuàng)建一個(gè)組件的文件,里面包括了組件頁(yè)面和index.js,index.js的作用是把組件暴露出去,目錄結(jié)構(gòu): 2、index.js里面的內(nèi)容 3、配置package.json打包命令,可以通過(guò) --mode 后面參數(shù)指定打包環(huán)境 注意:目前vue.config.js里面是沒(méi)有任何配置的,到這里其實(shí)就可以了,運(yùn)行打包命

    2024年02月16日
    瀏覽(15)
  • pnpm快速創(chuàng)建 Vue.js 項(xiàng)目(npm類(lèi)似)

    pnpm快速創(chuàng)建 Vue.js 項(xiàng)目(npm類(lèi)似)

    目錄 pnpm 創(chuàng)建一個(gè) Vue.js 項(xiàng)目 前提準(zhǔn)備: 運(yùn)行創(chuàng)建命令: 選擇項(xiàng)目配置:(按需選擇) cd +項(xiàng)目名:(進(jìn)入項(xiàng)目終端) 安裝項(xiàng)目依賴(lài): 運(yùn)行項(xiàng)目: 前提準(zhǔn)備: 確保已安裝 pnpm。如果沒(méi)有,請(qǐng)運(yùn)行以全局安裝 pnpm。 npm install -g pnpm 打開(kāi)終端并導(dǎo)航到要在其中創(chuàng)建項(xiàng)目的目錄。

    2024年02月10日
    瀏覽(47)
  • 【教程】npm的時(shí)候ssh報(bào)錯(cuò)ssh://git@github.com/frozeman/bignumber.js-nolookahead.git

    【教程】npm的時(shí)候ssh報(bào)錯(cuò)ssh://git@github.com/frozeman/bignumber.js-nolookahead.git

    fisco@ubuntu:~/fisco/benchmarks$ npm install install web3@0.20.7 npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/frozeman/bignumber.js-nolookahead.git npm ERR! git@github.com: Permission denied (publickey). npm ERR! fatal: Could not read from remote repository. npm ERR!? npm E

    2024年01月23日
    瀏覽(18)
  • vue項(xiàng)目 ‘npm run dev‘ 報(bào)錯(cuò) npm ERR! errno 134

    vue項(xiàng)目 ‘npm run dev‘ 報(bào)錯(cuò) npm ERR! errno 134

    npm ERR! errno 134 表示 npm 執(zhí)行出現(xiàn)了致命錯(cuò)誤,通常是由于內(nèi)存不足或程序崩潰導(dǎo)致的。 這時(shí)需要我們分配更多的內(nèi)存給 vue-cli-service serve npm install increase-memory-limit cross-env increase-memory-limit 用于增加腳本的內(nèi)存限制。腳本在執(zhí)行過(guò)程中可能會(huì)消耗大量的內(nèi)存,當(dāng)內(nèi)存被耗盡時(shí)會(huì)

    2024年02月11日
    瀏覽(35)
  • node.js 打開(kāi)低版本的npm項(xiàng)目報(bào)錯(cuò)以及升級(jí)包依賴(lài)解決方案

    npm-check|升級(jí)你的 node 項(xiàng)目中依賴(lài)庫(kù)最佳方案 - 知乎 (zhihu.com) (128條消息) npm install 安裝失敗常見(jiàn)問(wèn)題解決辦法_npm install安裝失敗_tester_sz的博客-CSDN博客 (128條消息) 解決nodejs報(bào)錯(cuò) :Cannot find module \\\'xxx\\\'的問(wèn)題 。(自己總結(jié)的,親測(cè)有效)_cannot find module \\\'node:module_10Alexander01的博

    2024年02月11日
    瀏覽(19)
  • 【解決問(wèn)題】Vue 項(xiàng)目中安裝依賴(lài) npm install 一直報(bào)錯(cuò)

    【解決問(wèn)題】Vue 項(xiàng)目中安裝依賴(lài) npm install 一直報(bào)錯(cuò)

    在 GitHub 上面找了幾個(gè)項(xiàng)目,下載下來(lái)想執(zhí)行以下,首先根據(jù) README 文檔進(jìn)行安裝依賴(lài): 但接下來(lái)就一直報(bào)錯(cuò),報(bào)錯(cuò)信息如下: 搜尋了好多種解決方法,依然不行,最后看到一篇博客說(shuō)是 ?C盤(pán) User 文件夾中的??.npmrc 文件 的問(wèn)題,于是我嘗試刪除該文件,再次進(jìn)行? npm inst

    2024年02月02日
    瀏覽(41)
  • npm init vue@latest 創(chuàng)建項(xiàng)目啟動(dòng)報(bào)錯(cuò)記錄

    npm init vue@latest 創(chuàng)建項(xiàng)目啟動(dòng)報(bào)錯(cuò)記錄

    問(wèn)題描述: 解決方案: 1.在終端中輸入sudo vim /etc/hosts ,回車(chē)然后輸入密碼 2.若出現(xiàn)如下圖所示(若沒(méi)有則直接輸入i,然后進(jìn)行后續(xù)操作),請(qǐng)輸入E 然后輸入i,移動(dòng)到最后一行輸入127.0.0.1 localhost 3.按esc退出編輯,然后輸入:wq保存并推出 4.然后重啟項(xiàng)目就可以了。

    2023年04月08日
    瀏覽(38)
  • vue 老項(xiàng)目 npm install 報(bào)錯(cuò)Python,c++等相關(guān)錯(cuò)誤

    vue 老項(xiàng)目 npm install 報(bào)錯(cuò)Python,c++等相關(guān)錯(cuò)誤

    ??? 老項(xiàng)目npm install 下載依賴(lài)包報(bào)錯(cuò) 解決方法: ? ? ? ?? ? ?? ?

    2024年02月14日
    瀏覽(22)
  • node、npm版本升級(jí),同時(shí)解決升級(jí)后vue項(xiàng)目運(yùn)行報(bào)錯(cuò)

    1、首先,需要確定當(dāng)前安裝的Node.js的版本??梢酝ㄟ^(guò)在命令行中運(yùn)行以下命令來(lái)查看: 2、如果當(dāng)前版本較舊,可以考慮升級(jí)到最新版本。可以訪問(wèn)Node.js官方網(wǎng)站(https://nodejs.org/)下載最新的Node.js安裝包。 不想下載最新的版本,也可以查看歷史版本進(jìn)行下載 3、在安裝完成

    2024年02月10日
    瀏覽(17)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包