Open wbkboyer opened 5 years ago
FYI reading about the issues with node 12 and dependencies that rely on old versions of fsevents here leads me to believe that if I delete package-lock.json And clear out the old node_modules, then the requirements should be updated; should I create a new package-lock.json and do a PR?
Indeed, after performing the following:
nvm uninstall 12.6.0
nvm install
12.6.0`npm use 12.6.0
git clone
of the repopackage-lock.json
npm install
npm update
I see in the new package-lock.json
that
"fsevents": {
"version": "1.2.9"
...
"chokidar": {
...
"fsevents": "^1.2.7",
...
@wbkboyer Thank you for taking the time to investigate and post your findings here. I will definitely update the dependencies. Glad you figured it out!
Hi! I've been trying to hammer at getting this up and running using the command
gatsby new my-site https://github.com/justinformentin/gatsby-v2-tutorial-starter
But when I run the command, I get errors pointing to issues with `fsevents`.
```bash van-wboye01-mac:locomath_gatsby wboyer$ gatsby new my-site https://github.com/justinformentin/gatsby-v2-tutorial-starter info Creating new site from git: Cloning into 'my-site'... remote: Enumerating objects: 319, done. remote: Total 319 (delta 0), reused 0 (delta 0), pack-reused 319 Receiving objects: 100% (319/319), 2.18 MiB | 22.00 KiB/s, done. success Created starter directory layout info Installing packages... > fsevents@1.2.7 install /Users/wboyer/kbm-devspc/git/locomath_gatsby/my-site/node_modules/fsevents > node install 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.7/fse-v1.2.7-node-v72-darwin-x64.tar.gz node-pre-gyp WARN Pre-built binaries not found for fsevents@1.2.7 and node@12.4.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Pre-built binaries not installable for fsevents@1.2.7 and node@12.4.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error Connection closed while downloading tarball file SOLINK_MODULE(target) Release/.node CXX(target) Release/obj.target/fse/fsevents.o CXX(target) Release/obj.target/fse/fsevents.o In file included from ../fsevents.cc:6: In file included from ../../nan/nan.h:222: In file included from ../../nan/nan_converters.h:67: ../../nan/nan_converters_43_inl.h:22:1: warning: 'ToBoolean' is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations] X(Boolean) ^ ../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X' val->To ## TYPE(isolate->GetCurrentContext()) \ ^I made sure that I had
brew install libffi
and that I addedexport PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig"
to my.bash_profile
(as per this post. I also:npm config set python "/usr/local/bin/python2.7" -g
as per this post and this postsudo chown -R $(whoami) ~/.npm/
--sudo chown -R $(whoami) ~/.npmrc
--sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
--sudo chown -R $(whoami) ~/.node-gyp
brew install vips
(as per these instructions) because of issues installingsharp
andfsevents
(as seen in the errors above).However, despite successfully
npm install sharp@latest fsevents@latest
, thepackage-lock.json
shows that the versions of these packages used by this project's dependencies are still the old ones that don't work withnode 12.4.0
.Is there something I'm missing here, or would it be possible to update the dependencies of this project? Thank you for your time in reading!