#reactjs #npm #visual-studio-code #compiler-errors
#reactjs #npm #visual-studio-code #ошибки компилятора
Вопрос:
Я изучаю React и тестирую этот репозиторий. Когда я клонирую и устанавливаю NPM, я получаю этот длинный вывод:
(Примечание: Stackoverflow не превышает 30.000 букв, исходный вывод был 300.000)
Microsoft Windows [Version 10.0.18363.1082]
(c) 2019 Microsoft Corporation. Med ensamrätt.
L:reactPropertyFinder>cd L:temporders-masterorders-master
L:temporders-masterorders-master>npm install
npm WARN deprecated fsevents@1.2.4: fsevents 1 will break on node v14 and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated topo@2.0.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
> grpc@1.20.0 install L:temporders-masterorders-masternode_modulesgrpc
> node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.20.0/node-v72-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc@1.20.0 and node@12.8.1 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
win_delay_load_hook.cc
WINDOWS_BUILD_WARNING.vcxproj -> L:temporders-masterorders-masternode_modulesgrpcbuildRelease\WINDOWS_BUILD_WARNING.node
err_data.c
a_bitstr.c
a_bool.c
a_d2i_fp.c
a_dup.c
a_enum.c
a_gentm.c
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(143): warning C4005: 'OPENSSL_THREA
DS': macro redefinition (compiling source file ..depsgrpcsrcboringsslerr_data.c) [L:temporders-masterorders-masternode_modulesgrpcbui
ldboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcsrcboringsslerr_data.c: note: see previous definition of 'OPENSSL_THREADS'
l:temporders-masterorders-
c:usersuserappdatalocalnode-gypcache12.8.1includenodeopensslossl_typ.h(91): error C2371: 'EVP_MD': redefinition; different basic type
s (compiling source file ..depsgrpcsrcboringsslerr_data.c) [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(304): note: see declaration of 'E
VP_MD' (compiling source file ..depsgrpcsrcboringsslerr_data.c)
c:usersuserappdatalocalnode-gypcache12.8.1includenodeopensslossl_typ.h(92): error C2371: 'EVP_MD_CTX': redefinition; different basic
types (compiling source file ..depsgrpcsrcboringsslerr_data.c) [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxpr
oj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(303): note: see declaration of 'E
VP_MD_CTX' (compiling source file ..depsgrpcsrcboringsslerr_data.c)
c:usersuserappdatalocalnode-gypcache12.8.1includenodeopensslossl_typ.h(100): error C2371: 'EVP_ENCODE_CTX': redefinition; different b
asic types (compiling source file ..depsgrpcsrcboringsslerr_data.c) [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.
vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(308): note: see declaration of 'E
VP_ENCODE_CTX' (compiling source file ..depsgrpcsrcboringsslerr_data.c)
c:usersuserappdatalocalnode-gypcache12.8.1includenodeopensslcrypto.h(231): error C2371: 'CRYPTO_THREADID': redefinition; different ba
sic types (compiling source file ..depsgrpcsrcboringsslerr_data.c)l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_par
tyboringsslincludeopensslbase.h(143): warning C4005: 'OPENSSL_THREADS': macro redefinition (compiling source file ..depsgrpcthird_partyb
oringsslcryptoasn1a_d2i_fp.c) [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(231): note: see declaration of 'C
RYPTO_THREADID' (compiling source file ..depsgrpcsrcboringsslerr_data.c)l:temporders-masterorders-masternode_modulesgrpcdepsgrpct
hird_partyboringsslcryptoasn1a_d2i_fp.c: note: see previous definition of 'OPENSSL_THREADS'
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(147): warning C4005: 'OPENSSL_VERSI
ON_NUMBER': macro redefinition (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_d2i_fp.c) [L:temporders-masterorders-m
asternode_modulesgrpcbuildboringssl.vcxproj]
c:usersuserappdatalocalnode-gypcache12.8.1includenodeopensslopensslv.h(42): note: see previous definition of 'OPENSSL_VERSION_NUMBE
R' (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_d2i_fp.c)
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(143): warning C4005: 'OPENSSL_THREA
DS': macro redefinition (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_bool.c) [L:temporders-masterorders-masternod
e_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_bool.c: note: see previous definition of '
OPENSSL_THREADS'
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(182): warning C4005: 'OPENSSL_EXPOR
T': macro redefinition (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_d2i_fp.c) [L:temporders-masterorders-masterno
de_modulesgrpcbuildboringssl.vcxproj]
c:usersuserappdatalocalnode-gypcache12.8.1includenodeopenssle_os2.h(171): note: see previous definition of 'OPENSSL_EXPORT' (compil
ing source file ..depsgrpcthird_partyboringsslcryptoasn1a_d2i_fp.c)
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(147): warning C4005: 'OPENSSL_VERSI
ON_NUMBER': macro redefinition (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_bool.c) [L:temporders-masterorders-mas
ternode_modulesgrpcbuildboringssl.vcxproj]
c:usersuserappdatalocalnode-gypcache12.8.1includenodeopensslopensslv.h(42): note: see previous definition of 'OPENSSL_VERSION_NUMBE
R' (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_bool.c)
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(231): error C2371: 'CRYPTO_THREADID
': redefinition; different basic types (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_d2i_fp.c)l:temporders-masteror
ders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(182): warning C4005: 'OPENSSL_EXPORT': macro redefinition (
compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_bool.c) [L:temporders-masterorders-masternode_modulesgrpcbuildbori
ngssl.vcxproj]
c:usersuserappdatalocalnode-gypcache12.8.1includenodeopensslcrypto.h(231): note: see declaration of 'CRYPTO_THREADID' (compiling so
urce file ..depsgrpcthird_partyboringsslcryptoasn1a_d2i_fp.c)c:usersuserappdatalocalnode-gypcache12.8.1includenodeopenssle_o
s2.h(171): note: see previous definition of 'OPENSSL_EXPORT' (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_bool.c)
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcsrcboringsslerr_data.c(33): error C2118: negative subscript [L:temporders-ma
sterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(143): warning C4005: 'OPENSSL_THREA
DS': macro redefinition (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_bitstr.c) [L:temporders-masterorders-mastern
ode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_bitstr.c: note: see previous definition of
'OPENSSL_THREADS'
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(143): warning C4005: 'OPENSSL_THREA
DS': macro redefinition (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_dup.c) [L:temporders-masterorders-masternode
_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_dup.c: note: see previous definition of 'O
PENSSL_THREADS'
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(303): error C2371: 'EVP_MD_CTX': re
definition; different basic types (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_d2i_fp.c)l:temporders-masterorders-
masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(231): error C2371: 'CRYPTO_THREADID': redefinition; different ba
sic types (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_bool.c) [L:temporders-masterorders-masternode_modulesgrpc
buildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcsrcboringsslerr_data.c(34): error C2118: negative subscript [L:temporders-ma
sterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
'OPENSSL_EXPOR
T': macro redefinition (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_dup.c) [L:temporders-masterorders-masternode_
modulesgrpcbuildboringssl.vcxproj]
c:usersuserappdatalocalnode-gypcache12.8.1includenodeopenssle_os2.h(171): note: see previous definition of 'OPENSSL_EXPORT' (compil
ing source file ..depsgrpcthird_partyboringsslcryptoasn1a_dup.c)
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcsrcboringsslerr_data.c(36): error C2118: negative subscript [L:temporders-ma
sterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(308): error C2371: 'EVP_ENCODE_CTX'
: redefinition; different basic types (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_d2i_fp.c) [L:temporders-mastero
rders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(182): warning C4005: 'OPENSSL_EXPOR
T': macro redefinition (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_enum.c)l:temporders-masterorders-masternode_m
odulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(304): error C2371: 'EVP_MD': redefinition; different basic types (compiling s
ource file ..depsgrpcthird_partyboringsslcryptoasn1a_bool.c) [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxpr
oj]
c:usersuserappdatalocalnode-gypcache12.8.1includenodeopensslossl_typ.h(100): note: see declaration of 'EVP_ENCODE_CTX' (compiling s
ource file ..depsgrpcthird_partyboringsslcryptoasn1a_d2i_fp.c)
c:usersuserappdatalocalnode-gypcache12.8.1includenodeopenssle_os2.h(171): note: see previous definition of 'OPENSSL_EXPORT' (compil
ing source file ..depsgrpcthird_partyboringsslcryptoasn1a_enum.c)c:usersuserappdatalocalnode-gypcache12.8.1includenodeopenssl
ossl_typ.h(91): note: see declaration of 'EVP_MD' (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_bool.c)
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(231): error C2371: 'CRYPTO_THREADID
': redefinition; different basic types (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_bitstr.c)l:temporders-masteror
ders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(231): error C2371: 'CRYPTO_THREADID': redefinition; differe
nt basic types (compiling source file ..depsgrpcthird_partyboringsslcryptoasn1a_dup.c)l:temporders-masterorders-masternode_modulesgr
pcdepsgrpcsrcboringsslerr_data.c(37): error C2118: negative subscript [L:temporders-masterorders-masternode_modulesgrpcbuildboringss
l.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslincludeopensslbase.h(308): error C2371: 'EVP_ENCODE_CTX'
BJECT_FLAG_DYNAMIC': undeclared identifier
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(241): error C2037: left of 'flags'
specifies undefined struct/union 'asn1_object_st' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_strnid.c(67): error C2084: function 'sk_ASN1
_STRING_TABLE_compfunc sk_ASN1_STRING_TABLE_set_cmp_func(stack_st_ASN1_STRING_TABLE *,sk_ASN1_STRING_TABLE_compfunc)' already has a bodyl:temp
orders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(241): error C2065: 'ASN1_OBJECT_FLAG_DYNAMI
C_STRINGS': undeclared identifier [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(245): error C2037: left of 'sn' spe
cifies undefined struct/union 'asn1_object_st'c:usersuserappdatalocalnode-gypcache12.8.1includenodeopensslasn1.h(194): note: see prev
ious definition of 'sk_ASN1_STRING_TABLE_set_cmp_func' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
cifies undefined struct/union 'asn1_object_st' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_strnid.c(226): warning C4133: 'function': in
compatible types - from 'size_t *' to 'ASN1_STRING_TABLE *' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(250): error C2037: left of 'ln' spe
cifies undefined struct/union 'asn1_object_st' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_strnid.c(226): warning C4020: 'sk_ASN1_STRIN
G_TABLE_find': too many actual parameters [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(252): error C2037: left of 'flags'
specifies undefined struct/union 'asn1_object_st' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(252): error C2065: 'ASN1_OBJECT_FLA
G_DYNAMIC_DATA': undeclared identifier [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(253): error C2037: left of 'data' s
pecifies undefined struct/union 'asn1_object_st' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(254): error C2037: left of 'data' s
pecifies undefined struct/union 'asn1_object_st' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_strnid.c(240): warning C4028: formal paramet
er 1 different from declaration [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(255): error C2037: left of 'data' s
pecifies undefined struct/union 'asn1_object_st' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_strnid.c(240): warning C4028: formal paramet
er 2 different from declaration [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(256): error C2037: left of 'length'
specifies undefined struct/union 'asn1_object_st' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_strnid.c(242): warning C4013: 'OPENSSL_PUT_E
RROR' undefined; assuming extern returning int [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(258): error C2037: left of 'flags'
specifies undefined struct/union 'asn1_object_st' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_strnid.c(242): error C2065: 'ASN1': undeclar
ed identifier [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(258): error C2065: 'ASN1_OBJECT_FLA
G_DYNAMIC': undeclared identifier [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_strnid.c(246): warning C4013: 'OPENSSL_mallo
c' undefined; assuming extern returning int [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(265): error C2079: 'o' uses undefin
ed struct 'asn1_object_st' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_strnid.c(246): warning C4047: '=': 'ASN1_STR
ING_TABLE *' differs in levels of indirection from 'int' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(267): error C2224: left of '.sn' mu
st have struct/union type [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_strnid.c(248): error C2065: 'ASN1': undeclar
ed identifier [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders- must have struct/union type [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(270): error C2224: left of '.nid' m
ust have struct/union type [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(271): error C2224: left of '.length
masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(273): error C2065: 'ASN1_OBJECT_FLA
G_DYNAMIC_DATA': undeclared identifier [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
l:temporders-masterorders-masternode_modulesgrpcdepsgrpcthird_partyboringsslcryptoasn1a_object.c(274): warning C4133: 'function': in
compatible types - from 'int *' to 'const ASN1_OBJECT *' [L:temporders-masterorders-masternode_modulesgrpcbuildboringssl.vcxproj]
cl : Command line error D8040: error creating or communicating with child process [L:temporders-masterorders-masternode_modulesgrpcbuildb
oringssl.vcxproj]
alloc.cc
arena.cc
atm.cc
cpu_iphone.cc
cpu_linux.cc
cpu_posix.cc
cpu_windows.cc
sync_windows.cc
time.cc
time_posix.cc
time_precise.cc
time_windows.cc
tls_pthread.cc
tmpfile_msys.cc
tmpfile_posix.cc
tmpfile_windows.cc
wrap_memcpy.cc
fork.cc
thd_posix.cc
thd_windows.cc
basic_timers.cc
stap_timers.cc
win_delay_load_hook.cc
gpr.vcxproj -> L:temporders-masterorders-masternode_modulesgrpcbuildRelease\libgpr.lib
init.cc
avl.cc
backoff.cc
channel_args.cc
channel_stack.cc
channel_stack_builder.cc
channel_trace.cc
channelz.cc
channelz_registry.cc
connected_channel.cc
stream_compression_identity.cc
stats.cc
stats_data.cc
format_request.cc
httpcli.cc
parser.cc
buffer_list.cc
call_combiner.cc
combiner.cc
endpoint.cc
endpoint_pair_posix.cc
endpoint_pair_uv.cc
endpoint_pair_windows.cc
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.20.0 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.20.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! C:UsersuserAppDataRoamingnpm-cache_logs2020-10-10T20_19_23_986Z-debug.log
L:temporders-masterorders-master>
Большая часть выходных данных имеет красный цвет:
Я пытаюсь удалить папку NODE_MODULES и файл package-lock.json, но никаких изменений. Я могу запустить запуск NPM, но с ошибкой компиляции:
./src/components/Firebase/firebase.js
Module not found: Can't resolve 'firebase/app' in 'L:temporders-masterorders-mastersrccomponentsFirebase'
Поэтому я пытаюсь установить его npm i firebase@^5.11.1
, и это дало мне такой же длинный вывод терминала.
Ранее сегодня я попробовал 3 проекта GitHub Reacatjs и некоторые проекты CodeSandbox, а мой VSCode и проекты компилируются и запускаются, как и должны.
Есть ide?
Есть ли что-то в package.json, что может вызвать это:
package.json:
{
"name": "react-firebase-authentication",
"version": "0.1.0",
"private": true,
"dependencies": {
"firebase": "^5.11.1",
"print-js": "^1.3.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.1",
"recompose": "^0.30.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom --passWithNoTests",
"eject": "react-scripts eject"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}
Я создаю новый проект create-react-app и копирую файл src и получаю тот же массивный вывод ошибок.
Есть идеи, что я могу сделать?
Я создал CodeSandbox, а сам Codesandbox запутался:
Ошибка Предоставленная вами ошибка не содержит трассировки стека.
Ответ №1:
Я думаю, что в репозитории может быть ошибка, или настройки пути у вас и владельцев репозитория могут отличаться.
Я советую вам сначала попытаться клонировать и запустить несколько небольших проектов react. Если это работает, то это должны быть проблемы с репозиторием, которые вам нужно будет исправить в коде / пути
Если это также не сработает, попробуйте проверить переменные среды!
Комментарии:
1. Я могу создать-react-app и запустить его в VSCode, чтобы мой исходный код NPM выглядел нормально. Я также запускаю это сейчас в CodeSandbox , и сам Codesandbox запутывается:
2. Я также запускаю это сейчас в CodeSandbox , и сам Codesandbox запутывается:
3. хорошо, у меня есть зацепка, я просто добавил «firebase»: «^ 5.11.1», который находится в неисправном файле projects package.json, в package.json нового create-react-app. Это дало мне ту же самую мега ошибку
4. Вместо того, чтобы писать версию модуля, просто введите имя, npm автоматически загрузит последнюю версию.
5. И если вам нужна конкретная версия, убедитесь в написании / цифрах.
Ответ №2:
хехе просто нужна последняя версия «firebase»: «^ 7.23.0».
Я думаю, что это ошибка NPM, потому что она совсем не удобна для пользователя.
Создана ОШИБКА, странное, не удобное для пользователя поведение, контролируемое самим пакетом #1944 проблемы