Comments (2)
项目中 node-sass 版本为 4.13,node-sass 与 node 版本有个对应关系,node 用 13 可解决此问题。
from staffjoy.
是不是镜像的配置有问题
#14 102.4 npm ERR! code 1 #14 102.4 npm ERR! path /build/myaccount/node_modules/node-sass #14 102.4 npm ERR! command failed #14 102.4 npm ERR! command sh -c node scripts/build.js #14 102.4 npm ERR! Building: /usr/local/bin/node /build/myaccount/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= #14 102.4 npm ERR! gyp info it worked if it ends with ok #14 102.4 npm ERR! gyp verb cli [ #14 102.4 npm ERR! gyp verb cli '/usr/local/bin/node', #14 102.4 npm ERR! gyp verb cli '/build/myaccount/node_modules/node-gyp/bin/node-gyp.js', #14 102.4 npm ERR! gyp verb cli 'rebuild', #14 102.4 npm ERR! gyp verb cli '--verbose', #14 102.4 npm ERR! gyp verb cli '--libsass_ext=', #14 102.4 npm ERR! gyp verb cli '--libsass_cflags=', #14 102.4 npm ERR! gyp verb cli '--libsass_ldflags=', #14 102.4 npm ERR! gyp verb cli '--libsass_library=' #14 102.4 npm ERR! gyp verb cli ] #14 102.4 npm ERR! gyp info using [email protected] #14 102.4 npm ERR! gyp info using [email protected] | linux | x64 #14 102.4 npm ERR! gyp verb command rebuild [] #14 102.4 npm ERR! gyp verb command clean [] #14 102.4 npm ERR! gyp verb clean removing "build" directory #14 102.4 npm ERR! gyp verb command configure [] #14 102.4 npm ERR! gyp verb check python checking for Python executable "python2" in the PATH #14 102.4 npm ERR! gyp verb
which
failed Error: not found: python2 #14 102.4 npm ERR! gyp verbwhich
failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12) #14 102.4 npm ERR! gyp verbwhich
failed at F (/build/myaccount/node_modules/which/which.js:68:19) #14 102.4 npm ERR! gyp verbwhich
failed at E (/build/myaccount/node_modules/which/which.js:80:29) #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/which/which.js:89:16 #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/isexe/index.js:42:5 #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/isexe/mode.js:8:5 #14 102.4 npm ERR! gyp verbwhich
failed at FSReqCallback.oncomplete (node:fs:198:21) #14 102.4 npm ERR! gyp verbwhich
failed python2 Error: not found: python2 #14 102.4 npm ERR! gyp verbwhich
failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12) #14 102.4 npm ERR! gyp verbwhich
failed at F (/build/myaccount/node_modules/which/which.js:68:19) #14 102.4 npm ERR! gyp verbwhich
failed at E (/build/myaccount/node_modules/which/which.js:80:29) #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/which/which.js:89:16 #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/isexe/index.js:42:5 #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/isexe/mode.js:8:5 #14 102.4 npm ERR! gyp verbwhich
failed at FSReqCallback.oncomplete (node:fs:198:21) { #14 102.4 npm ERR! gyp verbwhich
failed code: 'ENOENT' #14 102.4 npm ERR! gyp verbwhich
failed } #14 102.4 npm ERR! gyp verb check python checking for Python executable "python" in the PATH #14 102.4 npm ERR! gyp verbwhich
failed Error: not found: python #14 102.4 npm ERR! gyp verbwhich
failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12) #14 102.4 npm ERR! gyp verbwhich
failed at F (/build/myaccount/node_modules/which/which.js:68:19) #14 102.4 npm ERR! gyp verbwhich
failed at E (/build/myaccount/node_modules/which/which.js:80:29) #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/which/which.js:89:16 #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/isexe/index.js:42:5 #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/isexe/mode.js:8:5 #14 102.4 npm ERR! gyp verbwhich
failed at FSReqCallback.oncomplete (node:fs:198:21) #14 102.4 npm ERR! gyp verbwhich
failed python Error: not found: python #14 102.4 npm ERR! gyp verbwhich
failed at getNotFoundError (/build/myaccount/node_modules/which/which.js:13:12) #14 102.4 npm ERR! gyp verbwhich
failed at F (/build/myaccount/node_modules/which/which.js:68:19) #14 102.4 npm ERR! gyp verbwhich
failed at E (/build/myaccount/node_modules/which/which.js:80:29) #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/which/which.js:89:16 #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/isexe/index.js:42:5 #14 102.4 npm ERR! gyp verbwhich
failed at /build/myaccount/node_modules/isexe/mode.js:8:5 #14 102.4 npm ERR! gyp verbwhich
failed at FSReqCallback.oncomplete (node:fs:198:21) { #14 102.4 npm ERR! gyp verbwhich
failed code: 'ENOENT' #14 102.4 npm ERR! gyp verbwhich
failed } #14 102.4 npm ERR! gyp ERR! configure error #14 102.4 npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. #14 102.4 npm ERR! gyp ERR! stack at PythonFinder.failNoPython (/build/myaccount/node_modules/node-gyp/lib/configure.js:484:19) #14 102.4 npm ERR! gyp ERR! stack at PythonFinder. (/build/myaccount/node_modules/node-gyp/lib/configure.js:406:16) #14 102.4 npm ERR! gyp ERR! stack at F (/build/myaccount/node_modules/which/which.js:68:16) #14 102.4 npm ERR! gyp ERR! stack at E (/build/myaccount/node_modules/which/which.js:80:29) #14 102.4 npm ERR! gyp ERR! stack at /build/myaccount/node_modules/which/which.js:89:16 #14 102.4 npm ERR! gyp ERR! stack at /build/myaccount/node_modules/isexe/index.js:42:5 #14 102.4 npm ERR! gyp ERR! stack at /build/myaccount/node_modules/isexe/mode.js:8:5 #14 102.4 npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21) #14 102.4 npm ERR! gyp ERR! System Linux 5.10.76-linuxkit #14 102.4 npm ERR! gyp ERR! command "/usr/local/bin/node" "/build/myaccount/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" #14 102.4 npm ERR! gyp ERR! cwd /build/myaccount/node_modules/node-sass #14 102.4 npm ERR! gyp ERR! node -v v17.3.0 #14 102.4 npm ERR! gyp ERR! node-gyp -v v3.8.0 #14 102.4 npm ERR! gyp ERR! not ok #14 102.4 npm ERR! Build failed with error code: 1
项目中 node-sass 版本为 4.13,node-sass 与 node 版本有个对应关系,node 用 13 可解决此问题。
from staffjoy.
Related Issues (12)
- npm rebuild node-sass 报错 HOT 1
- k8s在部署完成之后,启用switchhosts之后 在命令行运行kubectl get pod -o wide等命令之后报错 HOT 2
- 项目结构是如何自动生成的 HOT 1
- git clone不下来啊 HOT 2
- English Translation HOT 1
- example数据不行啊,目前有两个问题导致项目跑不起来 HOT 2
- account-svc 会报错 HOT 2
- fronted/app 在win系统启动报错 HOT 4
- web app 模块 HelperService buildUrl 方法应该删除 static 标识 HOT 2
- 注册用户时 FeignException: status 404 HOT 2
- docker-compose build时,myaccount-service构建报错 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from staffjoy.