Mac M1 - 节点错误 - 错误:命名空间“std”中没有名为“remove_cv_t”的模板

时间:2021-07-30 15:19:12

标签: javascript node.js ruby-on-rails

我正在使用 Macbook M1 并在 yarn install 时遇到以下问题。我正在尝试建立一个使用刺激 JS 的 rails 6 项目。


/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:776:50: note: 'remove_cv' declared here
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv
                                                 ^
1 error generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/fahadazeem/Data/Projects/golfpay360/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (node:events:365:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 20.3.0
gyp ERR! command "/opt/homebrew/Cellar/node/16.2.0/bin/node" "/Users/fahadazeem/Data/Projects/golfpay360/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/fahadazeem/Data/Projects/golfpay360/node_modules/node-sass
gyp ERR! node -v v16.2.0```

0 个答案:

没有答案