На моем другом компьютере c, работающем также с Каталиной, у меня не было проблем с Node Package Manager, однако здесь я не могу заставить его работать.
При работе npm ci
:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdint:177:8: error: no member named
'uint_fast8_t' in the global namespace
using::uint_fast8_t;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdint:178:8: error: no member named
'uint_fast16_t' in the global namespace
using::uint_fast16_t;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdint:179:8: error: no member named
'uint_fast32_t' in the global namespace
using::uint_fast32_t;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdint:180:8: error: no member named
'uint_fast64_t' in the global namespace
using::uint_fast64_t;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdint:185:8: error: no member named
'intmax_t' in the global namespace
using::intmax_t;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdint:186:8: error: no member named
'uintmax_t' in the global namespace; did you mean 'uintptr_t'?
using::uintmax_t;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_uintptr_t.h:30:33: note:
'uintptr_t' declared here
typedef unsigned long uintptr_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/integer/src/integer.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/mysteryperson/git/a-git-repo/node_modules/integer
gyp ERR! node -v v10.20.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! integer@2.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the integer@2.1.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mysteryperson/.npm/_logs/2020-04-25T00_17_59_508Z-debug.log
Версии, в которых я сейчас работаю:
>> gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1103.0.32.59)
Target: x86_64-apple-darwin19.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Моя мама c на Catalina 10.15.4 и в версии CLT Xcode 11.4.1 (11E503a)
Я убедился, что установил xcode и инструменты командной строки из магазина приложений, я запустил npm rebuild, node-gyp rebuild et c. У меня есть идентичный Ma c, с которым все в порядке, и я думаю, что все мои волосы выпадают
Любая ассистанс очень ценится для этого новичка ...
>> xcode-select --version
xcode-select version 2373.