vue install - no template named 'remove_cv_t' in namespace 'std'

vue工具初始化了一个element项目,但是执行了yarn install报了下面的错误: yarn install .... /Users/hyman/.node-gyp/16.13.2/include/node/v8-internal.h:492: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/hyman/WebstormProjects/itart_tool/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (node:events:390:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) gyp ERR! System Darwin 20.6.0 gyp ERR! command "/usr/local/bin/node" "/Users/hyman/WebstormProjects/itart_tool/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /Users/hyman/WebstormProjects/itart_tool/node_modules/node-sass gyp ERR! node -v v16.13.2 gyp ERR! node-gyp -v v3.8.0 解决方案,增加一个CXXFLAGS参数: ...

August 14, 2022 · 1 分钟 · 170 字

Vuepress文章刷新后页面异常

今天用Vuepress搭建了博客,搭建步骤: 安装Nginx,以为觉得是静态文件发布,就没有修改默认配置。 Vuepress编辑后,将生成的public里的内容直接拷贝到**/usr/share/nginx/html** 拷贝完成后,直接访问博客就能正常访问,但是出现了个奇怪现象,在首页点击文章都能正常,但是进入文章后刷新就出现: ...

November 9, 2020 · 1 分钟 · 264 字

笔记本(Electron + Vue + Element UI)

市面上笔记本软件广告太多,功能不好用,就自己动手做了一个【虾记】(瞎记,开源地址:https://github.com/itart-top/notebook),使用(Electron + Vue + Element UI),支持: ...

October 18, 2020 · 1 分钟 · 147 字

Vue问题总结

1 URL带布尔类型参数获取异常 背景: Vue可以通过 this.$router.query.xx获取url上携带参数,例如: URL:http://itart.cn/?edit=true ...

May 1, 2020 · 2 分钟 · 949 字