伙伴云客服论坛»论坛 S区 S产品资讯 查看内容

0 评论

0 收藏

分享

vue node-saas 装置报错

    node-saas 装置报错
  1. gyp info spawn make
  2. gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
  3. make: Entering directory `/root/db-api/dbapi-ui/node_modules/node-sass/build'
  4.   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
  5. make: g++: Command not found
  6. make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 127
  7. make: Leaving directory `/root/db-api/dbapi-ui/node_modules/node-sass/build'
  8. gyp ERR! build error
  9. gyp ERR! stack Error: `make` failed with exit code: 2
  10. gyp ERR! stack     at ChildProcess.onExit (/root/db-api/dbapi-ui/node_modules/node-gyp/lib/build.js:194:23)
  11. gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
  12. gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
  13. gyp ERR! System Linux 3.10.0-1160.53.1.el7.x86_64
  14. 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="
  15. gyp ERR! cwd /root/db-api/dbapi-ui/node_modules/node-sass
  16. gyp ERR! node -v v14.15.3
  17. gyp ERR! node-gyp -v v7.1.2
  18. gyp ERR! not ok
  19. Build failed with error code: 1
  20. npm ERR! code ELIFECYCLE
  21. npm ERR! errno 1
  22. npm ERR! node-sass@5.0.0 postinstall: `node scripts/build.js`
  23. npm ERR! Exit status 1
  24. npm ERR!
  25. npm ERR! Failed at the node-sass@5.0.0 postinstall script.
  26. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  27. npm ERR! A complete log of this run can be found in:
  28. 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
  1. yum install"gcc-c++.x86_64"
复制代码

回复

举报 使用道具

全部回复
暂无回帖,快来参与回复吧
本版积分规则 高级模式
B Color Image Link Quote Code Smilies

把酒对长空
注册会员
主题 10
回复 22
粉丝 0
|网站地图
快速回复 返回顶部 返回列表