Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing node-sass 6.0.1 on Node v16.16.0 #3376

Open
wangshunshun opened this issue Jul 11, 2023 · 1 comment
Open

Installing node-sass 6.0.1 on Node v16.16.0 #3376

wangshunshun opened this issue Jul 11, 2023 · 1 comment

Comments

@wangshunshun
Copy link

wangshunshun commented Jul 11, 2023

I made an error while building a Vue project using Jenkins

npm ERR! code 1
npm ERR! path /home/data/jenkins/workspace/170-web-06-systemElements/node_modules/deasync
npm ERR! command failed
npm ERR! command sh -c node ./build.js
npm ERR! make: Entering directory `/home/data/jenkins/workspace/170-web-06-systemElements/node_modules/deasync/build'
npm ERR!   CXX(target) Release/obj.target/deasync/src/deasync.o
npm ERR! make: Leaving directory `/home/data/jenkins/workspace/170-web-06-systemElements/node_modules/deasync/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@16.13.2 | linux | x64
npm ERR! gyp info find Python using Python version 2.7.5 found at "/usr/bin/python"
npm ERR! (node:31038) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /usr/bin/python
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/home/data/jenkins/workspace/170-web-06-systemElements/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/data/jenkins/workspace/170-web-06-systemElements/node_modules/deasync/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/data/jenkins/workspace/170-web-06-systemElements/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/jenkins/.cache/node-gyp/16.13.2/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/jenkins/.cache/node-gyp/16.13.2',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/data/jenkins/workspace/170-web-06-systemElements/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/jenkins/.cache/node-gyp/16.13.2/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/data/jenkins/workspace/170-web-06-systemElements/node_modules/deasync',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! g++: error: unrecognized command line option ‘-std=gnu++14’
npm ERR! make: *** [Release/obj.target/deasync/src/deasync.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/home/data/jenkins/workspace/170-web-06-systemElements/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 3.10.0-1160.59.1.el7.x86_64
npm ERR! gyp ERR! command "/home/data/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/nodejs16.13.2/bin/node" "/home/data/jenkins/workspace/170-web-06-systemElements/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/data/jenkins/workspace/170-web-06-systemElements/node_modules/deasync
npm ERR! gyp ERR! node -v v16.13.2
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok 
npm ERR! Build failed
  • NPM version ( 8.11.0):
  • Node version (16.16.0):
  • node-sass versions (6.0.1):
@wangshunshun wangshunshun changed the title Installing node-sass 6.0.1 on Node v16.13.2 Installing node-sass 6.0.1 on Node v16.16.0 Jul 11, 2023
@xahy123
Copy link

xahy123 commented Jan 8, 2024

image

All of these failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants