Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MrMicrowaveOven opened this issue Oct 8, 2024 · 0 comments
Open

Comments

@MrMicrowaveOven
Copy link

MrMicrowaveOven commented Oct 8, 2024

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:

  • React Native Version: 0.75.2
  • Library Version 0.10.3

Additional context
Add any other context about the problem here.

@MrMicrowaveOven MrMicrowaveOven changed the title Installation issue: Unable to find autolink/postlink/run.js Installation issue: Unable to find /autolink/postlink/run.js Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant