ammarahm-ed / react-native-mmkv-storage

An ultra fast (0.0002s read/write), small & encrypted mobile key-value storage framework for React Native written in C++ using JSI
https://rnmmkv.now.sh
MIT License
1.59k stars 111 forks source link

Installation issue: Unable to find /autolink/postlink/run.js #361

Open MrMicrowaveOven opened 2 weeks ago

MrMicrowaveOven commented 2 weeks ago

Describe the bug When running npm install --save react-native-mmkv-storage, I receive this error:

benjaminzagorski@Benjamins-MBP WhereIsBenny % npm install --save react-native-mmkv-storage
(node:45547) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /Users/benjaminzagorski/Desktop/coding/WhereIsBenny/node_modules/react-native-mmkv-storage/autolink/postlink/run.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/benjaminzagorski/Desktop/coding/WhereIsBenny/node_modules/react-native-mmkv-storage/autolink/postlink/run.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/benjaminzagorski/.npm/_logs/2024-10-08T20_40_19_893Z-debug.log
benjaminzagorski@Benjamins-MBP WhereIsBenny %

It appears to be looking for node_modules/react-native-mmkv-storage/autolink/postlink/run.js. Looking at the previous versions, 0.10.2 had this folder, but it was removed in 0.10.3. So npm is still looking for it in the wrong place.

Strangely enough, I've installed 0.10.3 on other apps previously without issue. And now going back to that project, running npm install gives me the same error code. Even tried it on a new react native app, same issue.

I've restarted my computer and everything.

To Reproduce Steps to reproduce the behavior:

  1. Create a new react native app
  2. Run npm install --save react-native-mmkv-storage

Expected behavior A clear and concise description of what you expected to happen.

Installation as usual.

Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2024-10-08 at 3 40 28 PM

Platform Information:

Additional context Add any other context about the problem here.