Please notice this Mac is migrated via Migration Helper Tool,
and I tried reinstall XCode & xcode-select
Please help how to fix it or... how to reinstall these xcode/cmake stuffs all over again?
Verbose output (from npm or node-gyp):
Building: /Users/wx/.nvm/versions/node/v8.11.3/bin/node /Users/wx/Documents/projects/vue2-view/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/Users/wx/.nvm/versions/node/v8.11.3/bin/node',
gyp verb cli '/Users/wx/Documents/projects/vue2-view/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/local/bin/python2
gyp verb check python version `/usr/local/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.15\n"
gyp verb get node dir no --target version specified, falling back to host node version: 8.11.3
gyp verb command install [ '8.11.3' ]
gyp verb install input version string "8.11.3"
gyp verb install installing version: 8.11.3
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 8.11.3
gyp verb build dir attempting to create "build" dir: /Users/wx/Documents/projects/vue2-view/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /Users/wx/Documents/projects/vue2-view/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/wx/Documents/projects/vue2-view/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/wx/Documents/projects/vue2-view/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /Users/wx/Documents/projects/vue2-view/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/local/bin/python2
gyp info spawn args [ '/Users/wx/Documents/projects/vue2-view/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/wx/Documents/projects/vue2-view/node_modules/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/wx/Documents/projects/vue2-view/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/wx/.node-gyp/8.11.3/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/wx/.node-gyp/8.11.3',
gyp info spawn args '-Dnode_gyp_dir=/Users/wx/Documents/projects/vue2-view/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/wx/.node-gyp/8.11.3/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/wx/Documents/projects/vue2-view/node_modules/node-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /Users/wx/.node-gyp/8.11.3
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
c++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION="3.5.4"' -I/Users/wx/.node-gyp/8.11.3/include/node -I/Users/wx/.node-gyp/8.11.3/src -I/Users/wx/.node-gyp/8.11.3/deps/openssl/config -I/Users/wx/.node-gyp/8.11.3/deps/openssl/openssl/include -I/Users/wx/.node-gyp/8.11.3/deps/uv/include -I/Users/wx/.node-gyp/8.11.3/deps/zlib -I/Users/wx/.node-gyp/8.11.3/deps/v8/include -I../src/libsass/include -Os -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast.o.d.raw -c -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp
In file included from ../src/libsass/src/ast.cpp:1:
In file included from ../src/libsass/src/sass.hpp:49:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string:470:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view:169:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string:56:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:642:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/utility:203:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:158:8: error: no member named 'uint8_t' in the global namespace
using::uint8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:159:8: error: no member named 'uint16_t' in the global namespace
using::uint16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:160:8: error: no member named 'uint32_t' in the global namespace
using::uint32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:161:8: error: no member named 'uint64_t' in the global namespace
using::uint64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:163:8: error: no member named 'int_least8_t' in the global namespace
using::int_least8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:164:8: error: no member named 'int_least16_t' in the global namespace
using::int_least16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:165:8: error: no member named 'int_least32_t' in the global namespace
using::int_least32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:166:8: error: no member named 'int_least64_t' in the global namespace
using::int_least64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:168:8: error: no member named 'uint_least8_t' in the global namespace
using::uint_least8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:169:8: error: no member named 'uint_least16_t' in the global namespace
using::uint_least16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:170:8: error: no member named 'uint_least32_t' in the global namespace
using::uint_least32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:171:8: error: no member named 'uint_least64_t' in the global namespace
using::uint_least64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:173:8: error: no member named 'int_fast8_t' in the global namespace
using::int_fast8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:174:8: error: no member named 'int_fast16_t' in the global namespace
using::int_fast16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:175:8: error: no member named 'int_fast32_t' in the global namespace
using::int_fast32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:176:8: error: no member named 'int_fast64_t' in the global namespace
using::int_fast64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:178:8: error: no member named 'uint_fast8_t' in the global namespace
using::uint_fast8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:179:8: error: no member named 'uint_fast16_t' in the global namespace
using::uint_fast16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:180:8: error: no member named 'uint_fast32_t' in the global namespace
using::uint_fast32_t;
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/wx/Documents/projects/vue2-view/node_modules/node-gyp/lib/build.js:262:23)
That's an issue with the module you're trying to build (I'm guessing it's node-sass), not node-gyp. Apparently it's doing something that doesn't work with a newer macos sdk.
Try upgrading node-sass or, if it's already the latest version, open an issue over at that project.
How was this resolved?
I'm having similar issue with a migrated mac as well, any clues about how to solve this?
I'm having the same kinds of issues on migrated mac 10.14.5, except the oddly extended path to the headers is different, e.g.
using::int_least32_t;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstdint:166:8: error:
no member named 'int_least64_t' in the global namespace
@bnoordhuis This is not a node-sass bug, it's a node-gyp bug affecting migrated mac profiles. I'm seeing errors trying to build a number of projects that use node-gyp, like native-metrics. Please reopen.
Google search on your error... there are tons of non-Node packages where users seem to be reporting the same problem. The general solution seems to be ~a reinstall of Xcode~.
In case anyone stumbles across this issue, reinstalling XCode or node didn't help. I was only able to fix the broken c++ stdlib issues by removing /usr/local/include and re-installing llvm (I used homebrew, YMMV)
If you're installing node-sass, you can fix this problem by setting the SDKROOT before installing:
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
Most helpful comment
How was this resolved?