Open allegrox opened 3 months ago
是一些库的版本太老了?
同样的问题
同样的问题
159.2 [2/4] Fetching packages... 193.8 info There appears to be trouble with your network connection. Retrying... 222.0 info There appears to be trouble with your network connection. Retrying... 285.7 info fsevents@1.2.13: The platform "linux" is incompatible with this module. 285.7 info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. 285.8 info fsevents@2.3.3: The platform "linux" is incompatible with this module. 285.8 info "fsevents@2.3.3" is an optional dependency and failed compatibility check. Excluding it from installation. 285.8 error cheerio@1.0.0: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "10.24.1" 285.8 error Found incompatible module. 285.8 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
看这个报错是 「cheerio@1.0.0: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "10.24.1"」 是不是容器的 node 版本太低了?
159.2 [2/4] Fetching packages... 193.8 info There appears to be trouble with your network connection. Retrying... 222.0 info There appears to be trouble with your network connection. Retrying... 285.7 info fsevents@1.2.13: The platform "linux" is incompatible with this module. 285.7 info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. 285.8 info fsevents@2.3.3: The platform "linux" is incompatible with this module. 285.8 info "fsevents@2.3.3" is an optional dependency and failed compatibility check. Excluding it from installation. 285.8 error cheerio@1.0.0: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "10.24.1" 285.8 error Found incompatible module. 285.8 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
看这个报错是 「cheerio@1.0.0: The engine "node" is incompatible with this module. Expected version ">=18.17". Got "10.24.1"」 是不是容器的 node 版本太低了?
尝试修改 node 版本,有了新的报错 FROM node:18-alpine as frontend FROM node:20-alpine as frontend 这两个都报错找不到 python,报错如下:
which
failed Error: not found: python2
1531.8 gyp verb which
failed at getNotFoundError (/web/node_modules/which/which.js:13:12)
1531.8 gyp verb which
failed at F (/web/node_modules/which/which.js:68:19)
1531.8 gyp verb which
failed at E (/web/node_modules/which/which.js:80:29)
1531.8 gyp verb which
failed at /web/node_modules/which/which.js:89:16
1531.8 gyp verb which
failed at /web/node_modules/isexe/index.js:42:5
1531.8 gyp verb which
failed at /web/node_modules/isexe/mode.js:8:5
1531.8 gyp verb which
failed at FSReqCallback.oncomplete (node:fs:197:21)
1531.8 gyp verb which
failed python2 Error: not found: python2
1531.8 gyp verb which
failed at getNotFoundError (/web/node_modules/which/which.js:13:12)
1531.8 gyp verb which
failed at F (/web/node_modules/which/which.js:68:19)
1531.8 gyp verb which
failed at E (/web/node_modules/which/which.js:80:29)
1531.8 gyp verb which
failed at /web/node_modules/which/which.js:89:16
1531.8 gyp verb which
failed at /web/node_modules/isexe/index.js:42:5
1531.8 gyp verb which
failed at /web/node_modules/isexe/mode.js:8:5
1531.8 gyp verb which
failed at FSReqCallback.oncomplete (node:fs:197:21) {
1531.8 gyp verb which
failed code: 'ENOENT'
1531.8 gyp verb which
failed }
1531.8 gyp verb check python checking for Python executable "python" in the PATH
1531.8 gyp verb which
failed Error: not found: python
1531.8 gyp verb which
failed at getNotFoundError (/web/node_modules/which/which.js:13:12)
1531.8 gyp verb which
failed at F (/web/node_modules/which/which.js:68:19)
1531.8 gyp verb which
failed at E (/web/node_modules/which/which.js:80:29)
1531.8 gyp verb which
failed at /web/node_modules/which/which.js:89:16
1531.8 gyp verb which
failed at /web/node_modules/isexe/index.js:42:5
1531.8 gyp verb which
failed at /web/node_modules/isexe/mode.js:8:5
1531.8 gyp verb which
failed at FSReqCallback.oncomplete (node:fs:197:21)
1531.8 gyp verb which
failed python Error: not found: python
1531.8 gyp verb which
failed at getNotFoundError (/web/node_modules/which/which.js:13:12)
1531.8 gyp verb which
failed at F (/web/node_modules/which/which.js:68:19)
1531.8 gyp verb which
failed at E (/web/node_modules/which/which.js:80:29)
1531.8 gyp verb which
failed at /web/node_modules/which/which.js:89:16
1531.8 gyp verb which
failed at /web/node_modules/isexe/index.js:42:5
1531.8 gyp verb which
failed at /web/node_modules/isexe/mode.js:8:5
1531.8 gyp verb which
failed at FSReqCallback.oncomplete (node:fs:197:21) {
1531.8 gyp verb which
failed code: 'ENOENT'
1531.8 gyp verb which
failed }
1531.8 gyp ERR! configure error
1531.8 gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
1531.8 gyp ERR! stack at PythonFinder.failNoPython (/web/node_modules/node-gyp/lib/configure.js:484:19)
1531.8 gyp ERR! stack at PythonFinder.failed to solve: process "/bin/sh -c yarn config set registry https://registry.npmmirror.com -g && yarn config set sass_binary_site \"https://npmmirror.com/mirrors/node-sass/\" -g && yarn && yarn build" did not complete successfully: exit code: 1
同样的报错,😂
试了1.2 .8和1.2.11
=> ERROR [frontend frontend 4/4] RUN yarn config set registry https://registry.npmmirror.com -g && yarn config set sass_binary_site "https 55.4s