【报错记录】【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 报错

问题判断

判断: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 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 : numera
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值