vue 安装依赖一直报错 c++ '-DNODE_GYP_MODULE_NAME=libsass'

vue yekong

vue安装依赖一直报错,原来是版本太高的原因,将版本切换到node 14.x就可以了。

 c++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DLIBSASS_VERSION="3.5.5"' -I/Users/zhaowanjun/.node-gyp/16.10.0/include/node -I/Users/zhaowanjun/.node-gyp/16.10.0/src -I/Users/zhaowanjun/.node-gyp/16.10.0/deps/openssl/config -I/Users/zhaowanjun/.node-gyp/16.10.0/deps/openssl/openssl/include -I/Users/zhaowanjun/.node-gyp/16.10.0/deps/uv/include -I/Users/zhaowanjun/.node-gyp/16.10.0/deps/zlib -I/Users/zhaowanjun/.node-gyp/16.10.0/deps/v8/include -I../src/libsass/include  -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/values.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/values.o ../src/libsass/src/values.cpp

喜欢