Giter Site home page Giter Site logo

hooks-workshop's People

Contributors

aaronkelton avatar alwaysmorehats avatar anacr avatar bradwestfall avatar cassidoo avatar daniel-lovell avatar dcalhoun avatar duggiefresh avatar eshtadc avatar fnowinski avatar michael-caktus avatar mjackson avatar ryanflorence avatar samtsai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hooks-workshop's Issues

Versions of grpc and fsevents are not compatible with Node 12

Using Node v12.8.0 I am seeing problems building grpc pulled in from firebase and fsevents pulled in from chokidar:

Logs
...
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.

Issues installing firebase

Have done a decent amount of online searching to figure out this node installation issue. Using node -v v14.17.0. Consistently running into an error in grpc installation (shown below.) If anyone has resolved this, please let me know!

Uploading Screen Shot 2021-05-17 at 6.19.09 PM.png…

Warning of lessons06

warning comes from NewPost.js of 06-data-flow's exercise
image

and when clicking the "POST" buttton, page goes wrong.
need some help and thanks for your work!

bumping firebase from v6 to v7 to deal with node-pre-gyp issues

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"

System info MacBook Air M1 (ARM)
node v14.17.6 (LTS)
npm v6.14.15
Error log node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.9/fse-v1.2.9-node-v83-darwin-arm64.tar.gz
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)
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:2884:
../../nan/nan_typedarray_contents.h:34:43: warning: 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
data = static_cast(buffer->GetContents().Data()) + byte_offset;
^
/Users/glenn/Library/Caches/node-gyp/14.17.6/include/node/v8.h:5272:3: note: 'GetContents' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use GetBackingStore. See http://crbug.com/v8/9908.")
^
/Users/glenn/Library/Caches/node-gyp/14.17.6/include/node/v8config.h:402:39: note: expanded from macro 'V8_DEPRECATE_SOON'
# define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
^
1 warning generated.
SOLINK_MODULE(target) Release/fse.node
COPY /Users/glenn/tmp/hooks-workshop/node_modules/fsevents/lib/binding/Release/node-v83-darwin-arm64/fse.node
TOUCH Release/obj.target/action_after_build.stamp

> [email protected] install /Users/glenn/tmp/hooks-workshop/node_modules/grpc
> 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.23.3/node-v83-darwin-arm64-unknown.tar.gz
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)
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/backoff/backoff.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_args.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_stack.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_stack_builder.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_trace.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channelz.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channelz_registry.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/connected_channel.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/handshaker.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/handshaker_registry.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/status_util.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/compression.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/compression_args.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/compression_internal.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/message_compress.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression_gzip.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression_identity.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/debug/stats.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/debug/stats_data.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/http/format_request.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/http/httpcli.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/http/parser.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/buffer_list.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/call_combiner.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/cfstream_handle.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/combiner.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint_cfstream.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint_pair_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint_pair_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint_pair_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/error.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/error_cfstream.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_epoll1_linux.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_epollex_linux.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_poll_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/exec_ctx.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/executor.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/executor/mpmcqueue.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/executor/threadpool.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/fork_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/fork_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/gethostname_fallback.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/gethostname_host_name_max.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/gethostname_sysconf.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/grpc_if_nametoindex_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/grpc_if_nametoindex_unsupported.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/internal_errqueue.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iocp_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_internal.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_posix_cfstream.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/is_epollexclusive_available.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/load_file.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/lockfree_event.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/polling_entity.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_set.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_set_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_set_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/resolve_address.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/resolve_address_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/resolve_address_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/resolve_address_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/resource_quota.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/sockaddr_utils.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_factory_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_mutator.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_utils_common_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_utils_linux.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_utils_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_utils_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_utils_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_client.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_client_cfstream.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_client_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_client_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_client_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/time_averaged_stats.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_generic.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_heap.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_manager.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/udp_server.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/unix_sockets_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/unix_sockets_posix_noop.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_eventfd.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_nospecial.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_pipe.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json_reader.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json_string.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json_writer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/b64.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/percent_encoding.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice_buffer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice_intern.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice_string_helpers.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/api_trace.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/byte_buffer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/byte_buffer_reader.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/call.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/call_details.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/call_log_batch.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/channel.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/channel_init.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/channel_ping.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/channel_stack_type.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/completion_queue.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/completion_queue_factory.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/event_string.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/lame_client.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/metadata_array.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/server.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/validate_metadata.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/version.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/bdp_estimator.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/byte_stream.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/connectivity_state.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/error_utils.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/metadata.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/metadata_batch.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/pid_controller.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/static_metadata.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/status_conversion.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/status_metadata.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/timeout_encoding.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/transport.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/transport_op_string.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/uri/uri_parser.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/debug/trace.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.o
In file included from ../deps/grpc/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc:35:
In file included from ../deps/grpc/src/core/lib/security/context/security_context.h:28:
../deps/grpc/src/core/lib/security/credentials/credentials.h:211:15: error: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Werror,-Wnon-c-typedef-for-linkage]
typedef struct {
^
grpc_credentials_mdelem_array
../deps/grpc/src/core/lib/security/credentials/credentials.h:212:21: note: type is not C-compatible due to this default member initializer
grpc_mdelem* md = nullptr;
^~~~~~~
../deps/grpc/src/core/lib/security/credentials/credentials.h:214:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
} grpc_credentials_mdelem_array;
^
1 error generated.
make: *** [Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/glenn/.nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 20.4.0
gyp ERR! command "/Users/glenn/.nvm/versions/node/v14.17.6/bin/node" "/Users/glenn/.nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/Users/glenn/tmp/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v83-darwin-arm64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/glenn/tmp/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v83-darwin-arm64-unknown" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"
gyp ERR! cwd /Users/glenn/tmp/hooks-workshop/node_modules/grpc
gyp ERR! node -v v14.17.6
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/glenn/.nvm/versions/node/v14.17.6/bin/node /Users/glenn/.nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/glenn/tmp/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v83-darwin-arm64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/glenn/tmp/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v83-darwin-arm64-unknown --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/glenn/tmp/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:400:28)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1055:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
node-pre-gyp ERR! System Darwin 20.4.0
node-pre-gyp ERR! command "/Users/glenn/.nvm/versions/node/v14.17.6/bin/node" "/Users/glenn/tmp/hooks-workshop/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /Users/glenn/tmp/hooks-workshop/node_modules/grpc
node-pre-gyp ERR! node -v v14.17.6
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
Failed to execute '/Users/glenn/.nvm/versions/node/v14.17.6/bin/node /Users/glenn/.nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/glenn/tmp/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v83-darwin-arm64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/glenn/tmp/hooks-workshop/node_modules/grpc/src/node/extension_binary/node-v83-darwin-arm64-unknown --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/glenn/.npm/_logs/2021-09-02T08_02_14_721Z-debug.log

Can't build

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:
Screen Shot 2019-06-22 at 12 25 44 PM

Any suggestions?
Looks like it's something to do with node-gyp but this is the only repo that I have this problem with.

doesn't fetch a new user after logout (exercise 8)

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.

npm install failed on the hooks-workshop

Hi,

Whenever I try to do the npm install on the hooks-workshop, it returns the error below.

npm install inside hooks-shop folder

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)

Errors trying to install

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

  • 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"
    npm ERR! gyp ERR! cwd C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc
    npm ERR! gyp ERR! node -v v14.17.3
    npm ERR! gyp ERR! node-gyp -v v7.1.2
    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 '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 ERR! stack at ChildProcess. (C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By
    Building A Real Application\proj\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 (events.js:375:28)
    npm ERR! node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1055:16)
    npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
    npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19042
    npm ERR! node-pre-gyp ERR! command "C:\nodejs\node.exe" "C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
    npm ERR! node-pre-gyp ERR! cwd C:\Users\Dana\Desktop\dev\ReactTraining - Learn React Hooks By Building A Real Application\proj\hooks-workshop\node_modules\grpc
    npm ERR! node-pre-gyp ERR! node -v v14.17.3
    npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.13.0
    npm ERR! node-pre-gyp ERR! not ok

hooks-workshop.zip

  • All the exercises in the hooks-workshop.zip are already done.
  • There are no npm version specified, so building the git or the no-depths file with npm install produces an error

Lesson 04-effects : "Click on a calendar with a post" can't be done

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.