- gyp info spawn make
- gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
- make: Entering directory `/root/db-api/dbapi-ui/node_modules/node-sass/build'
- g++ -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DLIBSASS_VERSION="3.5.5"' -I/root/.cache/node-gyp/14.15.3/include/node -I/root/.cache/node-gyp/14.15.3/src -I/root/.cache/node-gyp/14.15.3/deps/openssl/config -I/root/.cache/node-gyp/14.15.3/deps/openssl/openssl/include -I/root/.cache/node-gyp/14.15.3/deps/uv/include -I/root/.cache/node-gyp/14.15.3/deps/zlib -I/root/.cache/node-gyp/14.15.3/deps/v8/include -I../src/libsass/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++1y -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast.o.d.raw -c
- make: g++: Command not found
- make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 127
- make: Leaving directory `/root/db-api/dbapi-ui/node_modules/node-sass/build'
- gyp ERR! build error
- gyp ERR! stack Error: `make` failed with exit code: 2
- gyp ERR! stack at ChildProcess.onExit (/root/db-api/dbapi-ui/node_modules/node-gyp/lib/build.js:194:23)
- gyp ERR! stack at ChildProcess.emit (events.js:315:20)
- gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
- gyp ERR! System Linux 3.10.0-1160.53.1.el7.x86_64
- gyp ERR! command "/opt/node-v14.15.3/bin/node" "/root/db-api/dbapi-ui/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
- gyp ERR! cwd /root/db-api/dbapi-ui/node_modules/node-sass
- gyp ERR! node -v v14.15.3
- gyp ERR! node-gyp -v v7.1.2
- gyp ERR! not ok
- Build failed with error code: 1
- npm ERR! code ELIFECYCLE
- npm ERR! errno 1
- npm ERR! node-sass@5.0.0 postinstall: `node scripts/build.js`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the node-sass@5.0.0 postinstall script.
- npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
- npm ERR! A complete log of this run can be found in:
- npm ERR! /root/.npm/_logs/2022-11-12T09_16_00_784Z-debug.log
复制代码可以看到缺少g++
make: g++: Command not found
make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 127
装置gcc
- yum install"gcc-c++.x86_64"
复制代码 |
|