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

npm報錯:These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/d

這篇具有很好參考價值的文章主要介紹了npm報錯:These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/d。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

npm 報錯:

These dependencies were not found:

* canvas in ./node_modules/pdfh5/js/pdf.js
* dommatrix/dist/dommatrix.js in ./node_modules/pdfh5/js/pdf.js
* web-streams-polyfill/dist/ponyfill.js in ./node_modules/pdfh5/js/pdf.worker.js

To install them, you can run: npm install --save canvas dommatrix/dist/dommatrix.js web-streams-polyfill/dist/ponyfill.js

npm報錯:These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/d,npm,pdf,javascript,前端,node.js

不能直接執(zhí)行他給的命令,那樣會報新的錯誤

第一步先執(zhí)行:

 npm install  canvas@2.8.0 --ignore-scripts

只執(zhí)行npm install canvas會報新的錯誤

第二步執(zhí)行:

npm install --save dommatrix

第三步執(zhí)行:

npm install --save web-streams-polyfill

然后就可以運行成功啦

我的node和npm版本如下:

npm報錯:These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/d,npm,pdf,javascript,前端,node.js文章來源地址http://www.zghlxwxcb.cn/news/detail-751955.html

到了這里,關(guān)于npm報錯:These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/d的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • Vue:項目啟動時報錯These dependencies were not found 解決辦法

    Vue:項目啟動時報錯These dependencies were not found 解決辦法

    在命令提示符中輸入下載依賴包的命令 出現(xiàn)錯誤 原因分析 可能因為npm版本過高,所以對某些命令比npm6.x更嚴(yán)格 解決方案 1、刪掉node_moudles文件夾 2、使用npm install –legacy-peer-deps重新安裝所有依賴包 每天進步一點點,開心也多一點點

    2024年01月19日
    瀏覽(29)
  • 【異常】Jenkins執(zhí)行前端項目Npm構(gòu)建時,出現(xiàn)報錯This dependency was not found: vue-class-component in ./node_modules/vu

    【異?!縅enkins執(zhí)行前端項目Npm構(gòu)建時,出現(xiàn)報錯This dependency was not found: vue-class-component in ./node_modules/vu

    同事的代碼變更,導(dǎo)致了在Jenkins無法執(zhí)行構(gòu)建 錯誤的原因是項目中引入了vue-class-component,但是在項目的依賴列表中,卻沒有找到它,因此會報如上的錯誤。 vue-class-component是一個用于類式Vue組件的TypeScript裝飾器。 它允許您將Vue組件定義為類,這可以使您的代碼更有組織性和

    2024年02月03日
    瀏覽(30)
  • 錯誤解決:These dependencies were not found: core-js/modules/es.array.push.js

    錯誤描述 執(zhí)行npm run dev后報錯: These dependencies were not found: * core-js/modules/es.array.push.js in ./node_modules/@babel/runtime/helpers/objectSpread2.js, ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-pluvue?vuetype=scriptlang=js and 9 others * core-js/modules/es.error.cause.js in ./node_modules/@babel/runtime/he

    2024年02月03日
    瀏覽(21)
  • ERROR Failed to compile with 2 errors These relative modules were not found:

    ERROR Failed to compile with 2 errors These relative modules were not found:

    ?提示在./node_modules/flatgeobuf/lib/mjs/packedrtree.js中找不到./config.js ./node_modules/flatgeobuf/lib/mjs/generic/featurecollection.js 中找不到../logger.js 如果是用vscode編寫,按住ctrl+報錯文件名 進入到該報錯文件 根據(jù)引入? import Config from \\\'./config.js\\\' 去尋找路徑\\\'./\\\'下有沒有config.js文件 發(fā)現(xiàn)只有\(zhòng)\\"Conf

    2024年02月02日
    瀏覽(26)
  • ? npm 報錯This relative module was not found: * ./src/main.js in multi (webpack)-dev-server/client?

    ? npm 報錯This relative module was not found: * ./src/main.js in multi (webpack)-dev-server/client?

    ? npm 報錯 ? 錯誤原因 手動把文件路徑寫錯了外 還一個可能是所使用的編輯器造成的,當(dāng)更改了文件目錄或者文件名后,編輯器會聰明的把一些認(rèn)為有關(guān)聯(lián)的路徑也一并修改了 ? 解決方法 最好的解決辦法就是刪除最外層的node_modules文件和package-lock.json文件,刪除后重新n

    2024年02月14日
    瀏覽(44)
  • 安裝element-ui后,運行報錯ERROR in ./node_modules/element-ui/lib/element-ui.common.js Module not found: Erro

    ERROR in ./node_modules/element-ui/lib/element-ui.common.js Module not found: Error: Can’t resolve ‘throttle-debounce/debounce’ in “xxx” ERROR in ./node_modules/_element-ui@2.13.2@element-ui/lib/tooltip.js Module not found: Error: Can’t resolve ‘throttle-debounce/debounce’ in ‘D:IdeaProjectsdolphindolphinscheduler-uinode_modules_element-ui@

    2024年02月11日
    瀏覽(21)
  • git報錯The project you were looking for could not be found 解決方式

    一、拉代碼報錯The project you were looking for could not be found 問題描述: 使用git從遠(yuǎn)程倉庫克隆項目到本地的時候。 出現(xiàn)這個問題:The project you were looking for could not be found. 原因分析: 你的賬號沒有項目的權(quán)限,你可以在瀏覽器輸入你的項目地址,如果可以進入,則說明有權(quán)限;

    2024年02月04日
    瀏覽(45)
  • 解決Android Studio測試報錯Test events were not received...No tests found for given includes

    筆者報錯時的運行環(huán)境: Android Studio Electric Eel | 2022.1.1 Patch 2 Gradle 8.0.1 JDK 17 JUnit 5.9.2 或 TestNG 7.7.1 單元測試 筆者在 Android Studio 界面內(nèi)運行單元測試時,踩坑無數(shù)。 首先,發(fā)現(xiàn)如下報錯。 后來發(fā)現(xiàn),不管運行什么單元測試都是如此。后來筆者又把測試框架改為 TestNG,然后運

    2024年02月04日
    瀏覽(122)
  • git克隆報錯remote: The project you were looking for could not be found的解決方法

    在clone項目的時候克隆失敗了,錯誤信息如下: remote: The project you were looking for could not be found. fatal: repository \\\'?http://10.134.108.109/xxxx/snpb.git\\\' not found 原因是由于我的gitlab中有多個項目多個用戶,我在克隆的時候系統(tǒng)還使用我之前的用戶來連接,所以會報錯。 解決方法: 在克隆

    2024年02月14日
    瀏覽(82)
  • mac執(zhí)行 npm 命令報錯:zsh command not found npm

    mac執(zhí)行 npm 命令報錯:zsh command not found npm

    根據(jù)錯誤提示可以知道,有兩種可能: 沒有安裝 nodejs 安裝了 nodejs,但是環(huán)境沒有配置 打開終端,查看是否安裝 nodejs 執(zhí)行 brew info node 命令,若出現(xiàn) Not installed ,則說明未安裝。 用 brew 安裝 nodejs 執(zhí)行完,檢查版本 說明安裝成功?。。。?若還是報錯:zsh: command not found: np

    2024年04月13日
    瀏覽(234)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包