상세 컨텐츠

본문 제목

Mac OS에서 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv 에러가 발생할 경우.

자바스크립트/vue.js

by amanda.hyon 2021. 5. 6. 15:40

본문

반응형

www.gitmemory.com/issue/microsoft/node-pty/441/735237621

 

Electron v11 on MacOS: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'? - node-pty

Ask questionsElectron v11 on MacOS: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'? Environment details OS: MacOS OS version: 10.15.7 node-pty version: 0.9.0 Issue description ➜ ~ vue --version @vue/cli 4.5.9 ➜ ~ vu

www.gitmemory.com

 

/Users/cookyman/.node-gyp/16.1.0/include/node/v8-internal.h:452:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?

            !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);

                                ~~~~~^~~~~~~~~~~

                                     remove_cv

/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/cookyman/VScodeProject/wizzney-2.0/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.4.0

gyp ERR! command "/opt/homebrew/Cellar/node/16.1.0/bin/node" "/Users/cookyman/VScodeProject/wizzney-2.0/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="

gyp ERR! cwd /Users/cookyman/VScodeProject/wizzney-2.0/node_modules/node-sass

gyp ERR! node -v v16.1.0

위와 같은 오류가 발생될 경우..

en.cppreference.com/w/cpp/types/remove_cv

 

std::remove_cv, std::remove_const, std::remove_volatile - cppreference.com

template< class T > struct remove_cv; (1) (since C++11) template< class T > struct remove_const; (2) (since C++11) template< class T > struct remove_volatile; (3) (since C++11) Provides the member typedef type which is the same as T, except that its topmos

en.cppreference.com

yarn install -std=c++17

이렇게 해결 할 수 있다고 합니다.

728x90
반응형

관련글 더보기

댓글 영역