Skip to content

Instantly share code, notes, and snippets.

@xpollen8
Created September 1, 2017 16:02
Show Gist options
  • Save xpollen8/4917a73a208b5932ae9d4cd3028a2feb to your computer and use it in GitHub Desktop.
Save xpollen8/4917a73a208b5932ae9d4cd3028a2feb to your computer and use it in GitHub Desktop.
I'm working on a nextjs/react thing and wanted to see how your r2 module compared to axios.
After installing and requiring, this is what I'm getting.
-------------
ERROR Failed to compile with .. errors 8:53:10 AM
These modules were not found:
* fs in ./node_modules/r2/index.js, ./node_modules/require-dir/index.js
To install it, you can run: npm install --save fs
-------------
So, I installed as instructed... same error
So, I installed down in the r2 directory... same error
What am I missing?
--------------
$ node -v
v6.2.2
$ npm -v
(node:65944) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:65944) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:65944) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
3.9.5
@xpollen8
Copy link
Author

xpollen8 commented Apr 10, 2024

@jonathanpv
Copy link

Apparently so.

thats awesome, and glad to see you respond so quickly ha
im barely getting started in my dev career good to see community from members like you

ape together strong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment