判断:node版本不适用产生的问题。
处理:为将node进行降级处理。
node官方历史版本参考
下载node版本控制器 sudo npm install n -g
切换node版本sudo n <版本号> #例如 15.0.0
重新进行npm install —— 成功
错误完整日志
2925 error gyp info it worked if it ends with ok
2925 error gyp verb cli [
2925 error gyp verb cli '/usr/local/bin/node',
2925 error gyp verb cli '/Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-gyp/bin/node-gyp.js',
2925 error gyp verb cli 'rebuild',
2925 error gyp verb cli '--verbose',
2925 error gyp verb cli '--libsass_ext=',
2925 error gyp verb cli '--libsass_cflags=',
2925 error gyp verb cli '--libsass_ldflags=',
2925 error gyp verb cli '--libsass_library='
2925 error gyp verb cli ]
2925 error gyp info using node-gyp@3.8.0
2925 error gyp info using node@16.0.0 | darwin | arm64
2925 error gyp verb command rebuild []
2925 error gyp verb command clean []
2925 error gyp verb clean removing "build" directory
2925 error gyp verb command configure []
2925 error gyp verb check python checking for Python executable "python2" in the PATH
2925 error gyp verb `which` succeeded python2 /usr/bin/python2
2925 error gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.16
2925 error gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
2925 error gyp verb get node dir no --target version specified, falling back to host node version: 16.0.0
2925 error gyp verb command install [ '16.0.0' ]
2925 error gyp verb install input version string "16.0.0"
2925 error gyp verb install installing version: 16.0.0
2925 error gyp verb install --ensure was passed, so won't reinstall if already installed
2925 error gyp verb install version is already installed, need to check "installVersion"
2925 error gyp verb got "installVersion" 9
2925 error gyp verb needs "installVersion" 9
2925 error gyp verb install version is good
2925 error gyp verb get node dir target node version installed: 16.0.0
2925 error gyp verb build dir attempting to create "build" dir: /Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-sass/build
2925 error gyp verb build dir "build" dir needed to be created? /Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-sass/build
2925 error gyp verb build/config.gypi creating config file
2925 error gyp verb build/config.gypi writing out config file: /Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-sass/build/config.gypi
2925 error (node:12588) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
2925 error (Use `node --trace-deprecation ...` to show where the warning was created)
2925 error gyp verb config.gypi checking for gypi file: /Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-sass/config.gypi
2925 error gyp verb common.gypi checking for gypi file: /Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-sass/common.gypi
2925 error gyp verb gyp gyp format was not specified; forcing "make"
2925 error gyp info spawn /usr/bin/python2
2925 error gyp info spawn args [
2925 error gyp info spawn args '/Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-gyp/gyp/gyp_main.py',
2925 error gyp info spawn args 'binding.gyp',
2925 error gyp info spawn args '-f',
2925 error gyp info spawn args 'make',
2925 error gyp info spawn args '-I',
2925 error gyp info spawn args '/Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-sass/build/config.gypi',
2925 error gyp info spawn args '-I',
2925 error gyp info spawn args '/Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-gyp/addon.gypi',
2925 error gyp info spawn args '-I',
2925 error gyp info spawn args '/Users/sxuet/.node-gyp/16.0.0/include/node/common.gypi',
2925 error gyp info spawn args '-Dlibrary=shared_library',
2925 error gyp info spawn args '-Dvisibility=default',
2925 error gyp info spawn args '-Dnode_root_dir=/Users/sxuet/.node-gyp/16.0.0',
2925 error gyp info spawn args '-Dnode_gyp_dir=/Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-gyp',
2925 error gyp info spawn args '-Dnode_lib_file=/Users/sxuet/.node-gyp/16.0.0/<(target_arch)/node.lib',
2925 error gyp info spawn args '-Dmodule_root_dir=/Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-sass',
2925 error gyp info spawn args '-Dnode_engine=v8',
2925 error gyp info spawn args '--depth=.',
2925 error gyp info spawn args '--no-parallel',
2925 error gyp info spawn args '--generator-output',
2925 error gyp info spawn args 'build',
2925 error gyp info spawn args '-Goutput_dir=.'
2925 error gyp info spawn args ]
2925 error gyp verb command build []
2925 error gyp verb build type Release
2925 error gyp verb architecture arm64
2925 error gyp verb node dev dir /Users/sxuet/.node-gyp/16.0.0
2925 error gyp verb `which` succeeded for `make` /usr/bin/make
2925 error gyp info spawn make
2925 error gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
2925 error In file included from ../src/libsass/src/ast.cpp:2:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/ast_fwd_decl.cpp:1:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/bind.cpp:3:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/check_nesting.cpp:4:
2925 error In file included from ../src/libsass/src/check_nesting.hpp:4:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/color_maps.cpp:2:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/context.cpp:9:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/cssize.cpp:6:
2925 error In file included from ../src/libsass/src/cssize.hpp:4:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/environment.cpp:2:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/error_handling.cpp:2:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/eval.cpp:10:
2925 error In file included from ../src/libsass/src/eval.hpp:4:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/expand.cpp:5:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/extend.cpp:2:
2925 error In file included from ../src/libsass/src/extend.hpp:7:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/file.cpp:23:
2925 error In file included from ../src/libsass/src/sass_functions.hpp:6:
2925 error In file included from ../src/libsass/src/functions.hpp:4:
2925 error In file included from ../src/libsass/src/listize.hpp:7:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/functions.cpp:2:
2925 error In file included from ../src/libsass/src/functions.hpp:4:
2925 error In file included from ../src/libsass/src/listize.hpp:7:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/inspect.cpp:9:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/listize.cpp:6:
2925 error In file included from ../src/libsass/src/listize.hpp:7:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/node.cpp:4:
2925 error In file included from ../src/libsass/src/node.hpp:7:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/operators.cpp:2:
2925 error In file included from ../src/libsass/src/operators.hpp:4:
2925 error In file included from ../src/libsass/src/values.hpp:4:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/output.cpp:2:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/parser.cpp:2:
2925 error In file included from ../src/libsass/src/parser.hpp:7:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/remove_placeholders.cpp:2:
2925 error In file included from ../src/libsass/src/remove_placeholders.hpp:6:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/sass.cpp:11:
2925 error In file included from ../src/libsass/src/sass_functions.hpp:6:
2925 error In file included from ../src/libsass/src/functions.hpp:4:
2925 error In file included from ../src/libsass/src/listize.hpp:7:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/sass_context.cpp:9:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/sass_functions.cpp:5:
2925 error In file included from ../src/libsass/src/values.hpp:4:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/sass_util.cpp:2:
2925 error In file included from ../src/libsass/src/node.hpp:7:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/sass_values.cpp:5:
2925 error In file included from ../src/libsass/src/eval.hpp:4:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/source_map.cpp:7:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/subset_map.cpp:2:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/to_c.cpp:3:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/to_value.cpp:2:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/util.cpp:3:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/libsass/src/values.cpp:3:
2925 error In file included from ../src/libsass/src/values.hpp:4:
2925 error ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto numerator : numerators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto numerator : numerators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
2925 error for (const auto denominator : denominators)
2925 error ^
2925 error ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
2925 error for (const auto denominator : denominators)
2925 error ^~~~~~~~~~~~~~~~~~~~~~~~
2925 error &
2925 error 2 warnings generated.
2925 error In file included from ../src/binding.cpp:1:
2925 error In file included from ../node_modules/nan/nan.h:54:
2925 error In file included from /Users/sxuet/.node-gyp/16.0.0/include/node/node.h:63:
2925 error In file included from /Users/sxuet/.node-gyp/16.0.0/include/node/v8.h:30:
2925 error /Users/sxuet/.node-gyp/16.0.0/include/node/v8-internal.h:452:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
2925 error !std::is_same>::value>::Perform(data);
2925 error ~~~~~^~~~~~~~~~~
2925 error remove_cv
2925 error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:710:50: note: 'remove_cv' declared here
2925 error template struct _LIBCPP_TEMPLATE_VIS remove_cv
2925 error ^
2925 error In file included from ../src/binding.cpp:1:
2925 error In file included from ../node_modules/nan/nan.h:2884:
2925 error ../node_modules/nan/nan_typedarray_contents.h:34:43: warning: 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
2925 error data = static_cast(buffer->GetContents().Data()) + byte_offset;
2925 error ^
2925 error /Users/sxuet/.node-gyp/16.0.0/include/node/v8.h:5571:3: note: 'GetContents' has been explicitly marked deprecated here
2925 error V8_DEPRECATED("Use GetBackingStore. See http://crbug.com/v8/9908.")
2925 error ^
2925 error /Users/sxuet/.node-gyp/16.0.0/include/node/v8config.h:415:35: note: expanded from macro 'V8_DEPRECATED'
2925 error # define V8_DEPRECATED(message) [[deprecated(message)]]
2925 error ^
2925 error 1 warning and 1 error generated.
2925 error make: *** [Release/obj.target/binding/src/binding.o] Error 1
2925 error gyp ERR! build error
2925 error gyp ERR! stack Error: `make` failed with exit code: 2
2925 error gyp ERR! stack at ChildProcess.onExit (/Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-gyp/lib/build.js:262:23)
2925 error gyp ERR! stack at ChildProcess.emit (node:events:365:28)
2925 error gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
2925 error gyp ERR! System Darwin 20.6.0
2925 error gyp ERR! command "/usr/local/bin/node" "/Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
2925 error gyp ERR! cwd /Users/sxuet/Documents/workplace/temp/record_vue2.0/node_modules/node-sass
2925 error gyp ERR! node -v v16.0.0
2925 error gyp ERR! node-gyp -v v3.8.0
2925 error gyp ERR! not ok
2925 error Build failed with error code: 1
2926 verbose exit 1
参考文章
https://blog.csdn.net/weixin_46025371/article/details/120577616
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)