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

failed to parse package.json on windows #122

Open
sameer-primelab opened this issue Oct 12, 2022 · 3 comments
Open

failed to parse package.json on windows #122

sameer-primelab opened this issue Oct 12, 2022 · 3 comments

Comments

@sameer-primelab
Copy link

hi,
I am trying to run this hack command on windows 10 but it throws errors. anyone stumbled upon this?

`PS E:\WindowsApp> npm run setup-windows --logging

[email protected] setup-windows
node_modules.bin\rn-nodeify.cmd --hack
failed to parse node_modules\resolve\test\resolver\malformed_package_json\package.json
failed to parse node_modules\eslint-plugin-react\node_modules\resolve\test\resolver\malformed_package_json\package.json
failed to parse: E:\WindowsApp\node_modules\resolve\test\resolver\malformed_package_json\package.json
failed to parse: E:\WindowsApp\node_modules\eslint-plugin-react\node_modules\resolve\test\resolver\malformed_package_json\package.json`

attaching my package.json for reference
package.json.zip

@Frostswing
Copy link

Frostswing commented Nov 7, 2022

I am having the same issue

anyone found a solution?

./node_modules/.bin/rn-nodeify --install --hack --force
not overwriting "assert"
not overwriting "browserify-zlib"
not overwriting "buffer"
not overwriting "console-browserify"
not overwriting "constants-browserify"
not overwriting "react-native-crypto"
not overwriting "dns.js"
not overwriting "domain-browser"
not overwriting "events"
not overwriting "@tradle/react-native-http"
not overwriting "https-browserify"
not overwriting "react-native-os"
not overwriting "path-browserify"
not overwriting "process"
not overwriting "punycode"
not overwriting "querystring-es3"
not overwriting "react-native-level-fs"
not overwriting "react-native-udp"
not overwriting "stream-browserify"
not overwriting "string_decoder"
not overwriting "timers-browserify"
not overwriting "tty-browserify"
not overwriting "url"
not overwriting "util"
not overwriting "react-native-tcp"
not overwriting "vm-browserify"
not overwriting "readable-stream"
not overwriting "react-native-randombytes"
not reinstalling inherits
not overwriting shim.js. For the latest version, see rn-nodeify/shim.js
failed to parse node_modules\resolve\test\resolver\malformed_package_json\package.json
failed to parse: C:\React Native Projects\MaximumSecurity\node_modules\resolve\test\resolver\malformed_package_json\package.json

@340rahul
Copy link

Pinging for any updates. Were you able resolve this?

@Frostswing
Copy link

Restoring the project to the time before installing notify and then reinstalling all the plugins together did the trick for me.

But it may be luck or something else that I have changed in the project since the restoration backup...

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

3 participants