beansoft / react-native-console

🧩 an IDEA/WebStorm/Android Studio Plugin for One-Click run React Native commands in embed terminal
BSD 3-Clause "New" or "Revised" License
185 stars 28 forks source link

supporting switch between yarn and npm #46

Closed colarzy closed 4 years ago

colarzy commented 4 years ago

Please add a setting to choose between yarn and npm to run the project. When clicking on run-android, I get this error:

/usr/local/bin/yarn react-native run-android Internal Error: app@workspace:.: This package doesn't seem to be present in your lockfile; try to make an install to update your resolutions at t.RunInstallPleaseResolver.getCandidates (/usr/local/lib/node_modules/yarn/bin/yarn.js:36:863677) at t.MultiResolver.getCandidates (/usr/local/lib/node_modules/yarn/bin/yarn.js:24:41320) at /usr/local/lib/node_modules/yarn/bin/yarn.js:36:581640 at /usr/local/lib/node_modules/yarn/bin/yarn.js:36:857805 at new Promise () at e.exports (/usr/local/lib/node_modules/yarn/bin/yarn.js:36:857787) at i (/usr/local/lib/node_modules/yarn/bin/yarn.js:24:91764) at /usr/local/lib/node_modules/yarn/bin/yarn.js:24:91837 at /usr/local/lib/node_modules/yarn/bin/yarn.js:24:91880 at new Promise ()

Process finished with exit code 1

beansoft commented 4 years ago

Hello, I'd like to know which version React Native you are using?

colarzy commented 4 years ago

0.62.2

beansoft commented 4 years ago

i've fixed it in https://github.com/beansoftapp/react-native-console/blob/master/react-native-console_release.jar, will soon be approved by Jetbrains plugin center.