日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

在package-lock.json中指定node-mass版本+独立编译flink中的flink-runtime-web模块

發布時間:2023/12/31 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 在package-lock.json中指定node-mass版本+独立编译flink中的flink-runtime-web模块 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

環境:

重要組件/系統版本
node(語言)v12.11.1
npm(包管理器)6.11.3
node-sass4.14.1
Ubuntu19.10

#################################################################################################################################################

步驟備註
cd flink/flink-runtime-web/

因為v4.11.0中不存在提示中的linux-x64-72_binding.node[2]

[3]中作者也明確說明已經升級為支持node12了,承認了刪除這個問題

?所以這個文件已經不存在了.

package-lock.json中的所有node-sass的4.11.0批量替換為4.14.1修改"resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.14.1.tgz"下面的integrity
修改上述文件中的integrity從https://registry.npmjs.org/node-sass搜索node-sass-4.14.1.tgz即可得到.
npm ci --cache-max=0 --no-save

npm run build

flink-runtime-web/pom.xml中的237-268和npm相關的全部<executions></executions>刪除

回到flink根目錄,進行整體mvn編譯

mvn clean install -T 2C ?-DskipTests? -Dmaven.compile.fork=true

思路:

首先獨立編譯flink-runtime-web

然後再整體編譯

最終效果:

#################################附錄#########################################################

編譯log如下:

(Python3.6) appleyuchi@Desktop:web-dashboard$ npm ci --cache-max=0 --no-save
npm WARN tarball tarball data for monaco-editor@0.16.2 (sha512-NtGrFzf54jADe7qsWh3lazhS7Kj0XHkJUGBq9fA/Jbwc+sgVcyfsYF6z2AQ7hPqDC+JmdOt/OwFjBnRwqXtx6w==) seems to be corrupted. Trying one more time.

> fsevents@1.2.7 install /home/appleyuchi/桌面/超線程測試/flink/flink-runtime-web/web-dashboard/node_modules/fsevents
> node install


> node-sass@4.14.1 install /home/appleyuchi/桌面/超線程測試/flink/flink-runtime-web/web-dashboard/node_modules/node-sass
> node scripts/install.js

Cached binary found at /home/appleyuchi/.npm/node-sass/4.14.1/linux-x64-72_binding.node

> node-sass@4.14.1 postinstall /home/appleyuchi/桌面/超線程測試/flink/flink-runtime-web/web-dashboard/node_modules/node-sass
> node scripts/build.js

Binary found at /home/appleyuchi/桌面/超線程測試/flink/flink-runtime-web/web-dashboard/node_modules/node-sass/vendor/linux-x64-72/binding.node
Testing binary
Binary is fine

> husky@1.3.1 install /home/appleyuchi/桌面/超線程測試/flink/flink-runtime-web/web-dashboard/node_modules/husky
> node husky install

husky > setting up git hooks
husky > done
added 1302 packages in 75.754s

(Python3.6) appleyuchi@Desktop:web-dashboard$ npm run build

> flink-dashboard@2.0.0 build /home/appleyuchi/桌面/超線程測試/flink/flink-runtime-web/web-dashboard
> ng build --prod --base-href ./

?10% building 4/5 modules 1 active ...web/web-dashboard/src/styles/index.lessBrowserslist: caniuse-lite is outdated. Please run next command `npm update`
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Date: 2020-06-17T02:11:28.801Z
Hash: 7a956d005eaf07271813
Time: 91190ms
chunk {0} common.2e107ed758cbf08ff8c3.js (common) 12.9 kB ?[rendered]
chunk {1} runtime.0dcf16aad31edd73d8e8.js (runtime) 2.38 kB [entry] [rendered]
chunk {2} 2.1be1fd5e3d6ea1f370b5.js () 221 kB ?[rendered]
chunk {3} 3.7d83c2faf0fd41a603d0.js () 557 kB ?[rendered]
chunk {4} 4.74c456251ccb13c0b02e.js () 9.36 kB ?[rendered]
chunk {5} es2015-polyfills.c9fc7a4ebe852d142120.js (es2015-polyfills) 56.4 kB [initial] [rendered]
chunk {6} main.bec5261a55e880d7de65.js (main) 1.17 MB [initial] [rendered]
chunk {7} polyfills.bb2456cce5322b484b77.js (polyfills) 41 kB [initial] [rendered]
chunk {8} styles.30d0912c1ece284d8d9a.css (styles) 426 kB [initial] [rendered]
chunk {9} 9.b5033223ed27c51844a6.js () 15.9 kB ?[rendered]
chunk {10} 10.b080209932dd17d83af3.js () 37.2 kB ?[rendered]
chunk {11} 11.497fa6c041217f34d29a.js () 157 kB ?[rendered]
chunk {12} 12.691ed0307ff2c8a6984d.js () 77.9 kB ?[rendered]
chunk {13} 13.1d50ed74896698cc500d.js () 20.9 kB ?[rendered]
chunk {14} 14.a07af2f95cb8013851d8.js () 144 kB ?[rendered]
?

#################################################################

Reference:

[1]https://gitee.com/fastsource/flink

[2]Release v4.11.0 · sass/node-sass · GitHub

[3]https://github.com/sass/node-sass/issues/2653

總結

以上是生活随笔為你收集整理的在package-lock.json中指定node-mass版本+独立编译flink中的flink-runtime-web模块的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。