久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

javascript - weexpack編譯出錯 Cannot find module ’escape-string-regexp’

瀏覽:110日期:2023-04-17 17:23:15

問題描述

weexpack@0.4.2node@7.7.0npm@5.0.4

運行 npm run serve出現下面錯誤ERROR in ./temp?entry=trueModule build failed: Error: Cannot find module ’escape-string-regexp’ (While processing preset: '/Users/pengwei/node_modules/babel-preset-es2015/lib/index.js')

at Function.Module._resolveFilename (module.js:470:15)at Function.Module._load (module.js:418:25)at Module.require (module.js:498:17)at require (internal/module.js:20:19)at Object.<anonymous> (/Users/pengwei/node_modules/babel-template/node_modules/chalk/index.js:2:26)at Module._compile (module.js:571:32)at Object.Module._extensions..js (module.js:580:10)at Module.load (module.js:488:32)at tryModuleLoad (module.js:447:12)at Function.Module._load (module.js:439:3)

@ multi (webpack)-dev-server/client?http://192.168.1.108:8080/web ./temp?entry=true

問題解答

回答1:

輸入以下命令,然后在啟動試試看。

npm install --save-dev escape-string-regexp回答2:

你項目的的node_module下少了這個模塊escape-string-regexp2個辦法你試試

1 在項目根目錄下 npm install --save escape-string-regexp2 刪除你項目的/node_module,然后重新執行npm install

最后,有條件最好使用npm而不是cnpm

回答3:

重新跑一邊npm install 或者 手動 npm install escape-string-regexp

回答4:

應該是沒有安裝模塊,導致找不到。

標簽: JavaScript
相關文章:
主站蜘蛛池模板: 昭觉县| 洪江市| 崇左市| 图片| 二手房| 镇原县| 钦州市| 哈巴河县| 师宗县| 灵寿县| 武义县| 丹巴县| 长丰县| 浦江县| 大渡口区| 晋中市| 琼海市| 上高县| 本溪市| 高安市| 广西| 溧阳市| 育儿| 德惠市| 安达市| 滨州市| 淮滨县| 申扎县| 乌恰县| 湘潭县| 平罗县| 抚远县| 萝北县| 都兰县| 鹿邑县| 广西| 张家口市| 遂溪县| 高尔夫| 阿拉善盟| 宁陵县|