reacttraining / hooks-workshop Goto Github PK
View Code? Open in Web Editor NEWThe course material for our React Hooks workshop
Home Page: https://reacttraining.com/workshops
The course material for our React Hooks workshop
Home Page: https://reacttraining.com/workshops
Not sure what the problem is, tried to clone and install several times but errors persist: (sorry there are A LOT of them)
npm ERR! code 1
npm ERR! path C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
npm ERR! win_delay_load_hook.cc
npm ERR! Generating code
npm ERR! All 1 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
npm ERR! Finished generating code
npm ERR! WINDOWS_BUILD_WARNING.vcxproj -> C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\Release\WINDOWS_BUILD_WARNING.node
npm ERR! address_sorting.c
npm ERR! address_sorting_posix.c
npm ERR! address_sorting_windows.c
npm ERR! win_delay_load_hook.cc
npm ERR! address_sorting.vcxproj -> C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\Release\libaddress_sorting.lib
npm ERR! ares__close_sockets.c
npm ERR! ares__get_hostent.c
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\third_party\cares\cares\ares__get_hostent.c(141): warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\ares.vcxproj]
npm ERR! c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1831): note: see declaration of 'inet_addr'
npm ERR! ares__read_line.c
npm ERR! ares__timeval.c
npm ERR! ares_cancel.c
npm ERR! ares_create_query.c
npm ERR! ares_data.c
npm ERR! ares_destroy.c
npm ERR! ares_expand_name.c
npm ERR! ares_expand_string.c
npm ERR! ares_fds.c
npm ERR! ares_free_hostent.c
npm ERR! ares_free_string.c
npm ERR! ares_getenv.c
npm ERR! ares_gethostbyaddr.c
npm ERR! ares_gethostbyname.c
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\third_party\cares\cares\ares_gethostbyname.c(275): warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\ares.vcxproj]
npm ERR! c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1831): note: see declaration of 'inet_addr'
npm ERR! ares_getnameinfo.c
npm ERR! ares_getopt.c
npm ERR! ares_getsock.c
npm ERR! ares_init.c
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\third_party\cares\cares\ares_init.c(2421): warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\ares.vcxproj]
npm ERR! c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1831): note: see declaration of 'inet_addr'
npm ERR! ares_library_init.c
npm ERR! ares_llist.c
npm ERR! ares_mkquery.c
npm ERR! ares_nowarn.c
npm ERR! ares_options.c
npm ERR! ares_parse_a_reply.c
npm ERR! ares_parse_aaaa_reply.c
npm ERR! ares_parse_mx_reply.c
npm ERR! ares_parse_naptr_reply.c
npm ERR! ares_parse_ns_reply.c
npm ERR! ares_parse_ptr_reply.c
npm ERR! ares_parse_soa_reply.c
npm ERR! ares_parse_srv_reply.c
npm ERR! ares_parse_txt_reply.c
npm ERR! ares_platform.c
npm ERR! ares_process.c
npm ERR! ares_query.c
npm ERR! ares_search.c
npm ERR! ares_send.c
npm ERR! ares_strcasecmp.c
npm ERR! ares_strdup.c
npm ERR! ares_strerror.c
npm ERR! ares_strsplit.c
npm ERR! ares_timeout.c
npm ERR! ares_version.c
npm ERR! ares_writev.c
npm ERR! bitncmp.c
npm ERR! inet_net_pton.c
npm ERR! inet_ntop.c
npm ERR! windows_port.c
npm ERR! win_delay_load_hook.cc
npm ERR! ares.vcxproj -> C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\Release\libares.lib
npm ERR! err_data.c
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\third_party\boringssl\include\openssl\base.h(147): warning C4005: 'OPENSSL_VERSION_NUMBER': macro redefinition [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\appdata\local\node-gyp\cache\14.17.3\include\node\openssl\opensslv.h(42): note: see previous definition
of 'OPENSSL_VERSION_NUMBER'
npm ERR! c:\users\dana\appdata\local\node-gyp\cache\14.17.3\include\node\openssl\e_os2.h(171): warning C4005: 'OPENSSL_EXPORT': macro redefinition [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\third_party\boringssl\include\openssl\base.h(182): note: see previous definition of 'OPENSSL_EXPORT'
npm ERR! c:\users\dana\appdata\local\node-gyp\cache\14.17.3\include\node\openssl\ossl_typ.h(91): error C2371: 'EVP_MD': redefinition; different basic types [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\third_party\boringssl\include\openssl\base.h(304): note: see declaration of 'EVP_MD'
npm ERR! c:\users\dana\appdata\local\node-gyp\cache\14.17.3\include\node\openssl\ossl_typ.h(92): error C2371: 'EVP_MD_CTX': redefinition; different basic types [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\third_party\boringssl\include\openssl\base.h(303): note: see declaration of 'EVP_MD_CTX'
npm ERR! c:\users\dana\appdata\local\node-gyp\cache\14.17.3\include\node\openssl\ossl_typ.h(100): error C2371: 'EVP_ENCODE_CTX':
redefinition; different basic types [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\third_party\boringssl\include\openssl\base.h(308): note: see declaration of 'EVP_ENCODE_CTX'
npm ERR! c:\users\dana\appdata\local\node-gyp\cache\14.17.3\include\node\openssl\crypto.h(231): error C2371: 'CRYPTO_THREADID': redefinition; different basic types [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\third_party\boringssl\include\openssl\base.h(231): note: see declaration of 'CRYPTO_THREADID'
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(33): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(34): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(35): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(36): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(37): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(38): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(39): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(40): error C2065: 'ERR_LIB_PKCS8': undeclared identifier [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(40): error C2057: expected constant expression [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(40): error C2466: cannot allocate an array of constant size 0 [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(41): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(42): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(43): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(44): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(45): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(46): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(47): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(48): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(49): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(50): error C2065: 'ERR_LIB_DIGEST': undeclared identifier [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(50): error C2057: expected constant expression [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(50): error C2466: cannot allocate an array of constant size 0 [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(51): error C2065: 'ERR_LIB_CIPHER': undeclared identifier [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(51): error C2057: expected constant expression [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(51): error C2466: cannot allocate an array of constant size 0 [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(52): error C2065: 'ERR_LIB_HKDF': undeclared identifier [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(52): error C2057: expected constant expression [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(52): error C2466: cannot allocate an array of constant size 0 [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(53): error C2118: negative subscript [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(54): error C2065: 'ERR_NUM_LIBS': undeclared identifier [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(54): error C2057: expected constant expression [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! c:\users\dana\desktop\dev\reacttraining - learn react hooks by building a real application\proj\hooks-workshop\node_modules\grpc\deps\grpc\src\boringssl\err_data.c(54): error C2466: cannot allocate an array of constant size 0 [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\boringssl.vcxproj]
npm ERR! alloc.cc
npm ERR! atm.cc
npm ERR! cpu_iphone.cc
npm ERR! cpu_linux.cc
npm ERR! cpu_posix.cc
npm ERR! cpu_windows.cc
npm ERR! env_linux.cc
npm ERR! env_posix.cc
npm ERR! env_windows.cc
npm ERR! log.cc
npm ERR! log_android.cc
npm ERR! log_linux.cc
npm ERR! log_posix.cc
npm ERR! log_windows.cc
npm ERR! mpscq.cc
npm ERR! murmur_hash.cc
npm ERR! string.cc
npm ERR! string_posix.cc
npm ERR! string_util_windows.cc
npm ERR! string_windows.cc
npm ERR! sync.cc
npm ERR! sync_posix.cc
npm ERR! sync_windows.cc
npm ERR! time.cc
npm ERR! time_posix.cc
npm ERR! time_precise.cc
npm ERR! time_windows.cc
npm ERR! tls_pthread.cc
npm ERR! tmpfile_msys.cc
npm ERR! tmpfile_posix.cc
npm ERR! tmpfile_windows.cc
npm ERR! wrap_memcpy.cc
npm ERR! arena.cc
npm ERR! fork.cc
npm ERR! global_config_env.cc
npm ERR! host_port.cc
npm ERR! thd_posix.cc
npm ERR! thd_windows.cc
npm ERR! basic_timers.cc
npm ERR! stap_timers.cc
npm ERR! win_delay_load_hook.cc
npm ERR! gpr.vcxproj -> C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\Release\libgpr.lib
npm ERR! C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(877,21): error MSB4198: The expression "DirectoryName" cannot be evaluated on item "Release\obj\grpc\deps\grpc\src\core\ext\filters\client_channel\lb_policy\grpclb\proto\grpc\lb\v1\google\protobuf\duration.pb.obj". The specified path, file name, or both are too
long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. [C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\grpc.vcxproj]
npm ERR! adler32.c
npm ERR! compress.c
npm ERR! crc32.c
npm ERR! deflate.c
npm ERR! gzclose.c
npm ERR! gzlib.c
npm ERR! gzread.c
npm ERR! gzwrite.c
npm ERR! infback.c
npm ERR! inffast.c
npm ERR! inflate.c
npm ERR! inftrees.c
npm ERR! trees.c
npm ERR! uncompr.c
npm ERR! zutil.c
npm ERR! win_delay_load_hook.cc
npm ERR! z.vcxproj -> C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\Release\libz.lib
npm ERR! Failed to execute 'C:\nodejs\node.exe C:\Users\Dana\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --library=static_library --module=C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using [email protected]
npm ERR! node-pre-gyp info using [email protected] | win32 | x64
npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download
npm ERR! node-pre-gyp info check checked for "C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node" (not found)
npm ERR! node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v83-win32-x64-unknown.tar.gz
npm ERR! node-pre-gyp http 404 https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v83-win32-x64-unknown.tar.gz
npm ERR! node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v83-win32-x64-unknown.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http 404 status code downloading tarball https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v83-win32-x64-unknown.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.9.5 found at "C:\Users\Dana\AppData\Local\Programs\Python\Python39\python.exe"
npm ERR! gyp info find VS using VS2017 (15.9.28307.1525) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Users\Dana\AppData\Local\Programs\Python\Python39\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\Users\Dana\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\Dana\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\Dana\AppData\Local\node-gyp\Cache\14.17.3\include\node\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\Users\Dana\AppData\Local\node-gyp\Cache\14.17.3',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\Dana\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\Dana\\AppData\\Local\\node-gyp\\Cache\\14.17.3\\<(target_arch)\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A
Real Application\proj\hooks-workshop\node_modules\grpc',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'build/binding.sln',
npm ERR! gyp info spawn args '/clp:Verbosity=minimal',
npm ERR! gyp info spawn args '/nologo',
npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onExit (C:\Users\Dana\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:375:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\nodejs\node.exe" "C:\Users\Dana\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\Users\Dana\Desktop\dev\ReactTraining
if you create two users, and log out, then on logging back in, you find that we don't actually fetch a new user, as the logout does not remove the user from the store, and the new login doesn't fetch a user as there already is one in the store.
dont think this prevents the learning of hooks, but it would be good to tidy it up. If you want me to put it right, let me know, its a very straightforward fix.
Adding a new post in exercise 06 errors
The hooks-workshop.zip on the online workshop page seems out of date with the repository.
For instance, lesson 2 has part of the solution implemented in the initial state.
When running npm install
it would fail every time, the culprit seemed to be the deprecated node-pre-gyp
package that couldn't be installed by some dependencies (fsevents
& grpc
) of firebase
.
I fixed it by bumping firebase
1 major version up (from 6.x.x to 7.x.x).
Either through npm uninstall firebase && npm i firebase@7
or by changing the firebase entry under dependencies in package.json
with "firebase": "^7.24.0"
On https://courses.reacttraining.com/courses/725761/lectures/13074979, if you click on the link named "GitHub" it's a 404.
Hi,
Whenever I try to do the npm install on the hooks-workshop, it returns the error below.
Results in:
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: This library will not receive further updates other than security fixes. We recommend using @grpc/grpc-js instead.
npm WARN deprecated [email protected]: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated [email protected]: 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 [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated [email protected]: flatten is deprecated in favor of utility frameworks such as lodash.
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: This loader has been deprecated. Please use eslint-webpack-plugin
npm WARN deprecated [email protected]: 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 [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated [email protected]: use String.prototype.padStart()
npm WARN deprecated [email protected]: This is probably built in to whatever tool you're using. If you still need it... idk
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: please switch to a stable version
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer
npm WARN deprecated [email protected]: 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 [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc
npm ERR! command failed
npm ERR! command sh -c -- node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v93-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v93-darwin-x64-unknown --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using [email protected]
npm ERR! node-pre-gyp info using [email protected] | darwin | x64
npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download
npm ERR! node-pre-gyp info check checked for "/Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v93-darwin-x64-unknown/grpc_node.node" (not found)
npm ERR! node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v93-darwin-x64-unknown.tar.gz
npm ERR! node-pre-gyp http 404 https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v93-darwin-x64-unknown.tar.gz
npm ERR! node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v93-darwin-x64-unknown.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http 404 status code downloading tarball https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v93-darwin-x64-unknown.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | x64
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if "python3" can be used
npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if "python" can be used
npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
npm ERR! gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
npm ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
npm ERR! gyp ERR! stack at PythonFinder. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
npm ERR! gyp ERR! stack at exithandler (node:child_process:410:5)
npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:422:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! stack at onErrorNT (node:internal/child_process:485:16)
npm ERR! gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! gyp ERR! System Darwin 21.5.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=/Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v93-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v93-darwin-x64-unknown" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
npm ERR! gyp ERR! cwd /Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc
npm ERR! gyp ERR! node -v v16.18.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v93-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v93-darwin-x64-unknown --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess. (/Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1100:16)
npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
npm ERR! node-pre-gyp ERR! System Darwin 21.5.0
npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
npm ERR! node-pre-gyp ERR! cwd /Users/aoomle/Desktop/Courses/3 React Hooks/hooks-workshop/node_modules/grpc
npm ERR! node-pre-gyp ERR! node -v v16.18.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.13.0
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/aoomle/.npm/_logs/2022-12-20T00_14_46_391Z-debug-0.log
โ hooks-workshop git:(master)
The second part of the exercise number 4 is asking us to "click on a calendar with a post". Unless I am missing something, adding posts to an event is not implemented yet and the whole calendar is empty so it's tricky to verify if our implementation of takeFocus
is working.
the onSelect prop is already implemented at line 28 of 06-data-flow/exercise/RecentPostsDropdown.js
I'm trying to build the repo but I keep getting errors in the terminal when I run npm i
Here is a snippet from the npm error log
45992 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/chokidar/node_modules/fsevents):
45993 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node install`
45993 warn optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
45994 verbose optional SKIPPING OPTIONAL DEPENDENCY:
45994 verbose optional Failed at the [email protected] install script.
45994 verbose optional SKIPPING OPTIONAL DEPENDENCY: This is probably not a problem with npm. There is likely additional logging output above.
45995 verbose stack Error: [email protected] install: `node-pre-gyp install --fallback-to-build --library=static_library`
45995 verbose stack Exit status 1
45995 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
45995 verbose stack at EventEmitter.emit (events.js:200:13)
45995 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
45995 verbose stack at ChildProcess.emit (events.js:200:13)
45995 verbose stack at maybeClose (internal/child_process.js:1021:16)
45995 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
45996 verbose pkgid [email protected]
45997 verbose cwd /Users/tony/Documents/Development/github-forks/hooks-workshop
45998 verbose Darwin 18.6.0
45999 verbose argv "/usr/local/Cellar/node/12.4.0/bin/node" "/usr/local/bin/npm" "install"
46000 verbose node v12.4.0
46001 verbose npm v6.9.0
46002 error code ELIFECYCLE
46003 error errno 1
46004 error [email protected] install: `node-pre-gyp install --fallback-to-build --library=static_library`
46004 error Exit status 1
46005 error Failed at the [email protected] install script.
46005 error This is probably not a problem with npm. There is likely additional logging output above.
46006 verbose exit [ 1, true ]
So, I ignored the warnings and did a npm start
, the project then asks where would I like to begin (or something to that effect) and I enter 0
and get this:
Any suggestions?
Looks like it's something to do with node-gyp
but this is the only repo that I have this problem with.
Using Node v12.8.0 I am seeing problems building grpc
pulled in from firebase
and fsevents
pulled in from chokidar
:
...
make: make: *** [Release/obj.target/fse/fsevents.o] Error 1*** [Release/obj.target/fse/fsevents.o] Error 1
gypgyp ERR!ERR! build errorbuild error
gypgyp ERR!ERR! stackstack Error: `make` failed with exit code: 2
Error: `make` failed with exit code: 2
gypgyp ERR!ERR! stackstack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gypgyp ERR!ERR! stackstack at ChildProcess.emit (events.js:203:13)
at ChildProcess.emit (events.js:203:13)
gypgyp ERR!ERR! stackstack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gypgyp ERR!ERR! SystemSystem Darwin 18.7.0
Darwin 18.7.0
gypgyp ERR!ERR! commandcommand "/usr/local/Cellar/node/12.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64" "--napi_version=4" "--node_abi_napi=napi"
"/usr/local/Cellar/node/12.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64" "--napi_version=4" "--node_abi_napi=napgypi"
ERR! cwdgyp /Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents
ERR!gyp cwdERR! /Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents
node -vgyp v12.8.0
ERR!gyp node -v v12.8.0
ERR! node-gyp -vgyp v5.0.3
ERR!gyp node-gyp -v v5.0.3
ERR! not okgyp
ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/12.8.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:203:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Darwin 18.7.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/12.8.0/bin/node" "/Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents
node-pre-gyp ERR! node -v v12.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/Cellar/node/12.8.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/esturcke/work/hooks-workshop/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
...
make: *** [Release/obj.target/grpc_node/ext/channel.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:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:203:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/Cellar/node/12.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/Users/esturcke/work/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v72-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/esturcke/work/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v72-darwin-x64-unknown" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
gyp ERR! cwd /Users/esturcke/work/hooks-workshop/node_modules/grpc
gyp ERR! node -v v12.8.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/12.8.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/esturcke/work/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v72-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/esturcke/work/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v72-darwin-x64-unknown --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/esturcke/work/hooks-workshop/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:203:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Darwin 18.7.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/12.8.0/bin/node" "/Users/esturcke/work/hooks-workshop/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /Users/esturcke/work/hooks-workshop/node_modules/grpc
node-pre-gyp ERR! node -v v12.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/Cellar/node/12.8.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/esturcke/work/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v72-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/esturcke/work/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v72-darwin-x64-unknown --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
...
It looks like [email protected]
is optional for chokadir
, but removing and regenerating the package-lock.json
fixes that issue.
The firebase
issue looks like it requires a major upgrade to 6.0.2-0. Updating it to 6.2.2 in package.json
worked for me. The breaking change is that it no longer comes bundled with polyfills.
After both of these steps npm i
installs fine and I was able to run the full application and register a user.
I'm not sure what browsers you need to target, but would it be possible to update these dependencies? I can put together a PR if you would like to see my changes.
nvm install stable
installs 13.5.0npm install
fails on [email protected] install
nvm install 12.14.0
(and then use default
) and now npm install
works well.I did this because the top of the readme suggests using LTS - and that works well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.