【报错记录】【npm install】no template named ‘remove_cv_t’ in namespace ‘std’; did you mean ‘remove_cv’?

【npm install】no template named ‘remove_cv_t’ in namespace ‘std’; did you mean ‘remove_cv’?

  • npm install 报错
    • 问题判断
    • 处理方案
    • 错误完整日志
  • 参考文章

npm install 报错

问题判断

判断:node版本不适用产生的问题。
处理:为将node进行降级处理。

处理方案

node官方历史版本参考

  1. 下载node版本控制器
     sudo npm install n -g
    
  2. 切换node版本
    sudo n  <版本号>  #例如 15.0.0
    
  3. 重新进行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 [email protected]
2925 error gyp info using [email protected] | 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 

你可能感兴趣的:(报错记录,npm,npm,node.js,前端)