- Saved searches
- Use saved searches to filter your results more quickly
- Cannot run program «node» #7382
- Cannot run program «node» #7382
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- Gradle sync stop working with «Cannot run program «node» message #1457
- Gradle sync stop working with «Cannot run program «node» message #1457
- Comments
- Environment
- Description
- Saved searches
- Use saved searches to filter your results more quickly
- java.io.IOException: Cannot run program «/opt/app-root/src/frontend/node/node» #636
- java.io.IOException: Cannot run program «/opt/app-root/src/frontend/node/node» #636
- Comments
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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
Cannot run program «node» #7382
Cannot run program «node» #7382
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Comments
Hi,my react-native version is 0.2.0,I am using macOs,when I using
classpath ‘com.android.tools.build:gradle:2.1.0’
in my project_root build.gradle file and run the ./gradlew assembleRelease command in the cli,I will got the error info as bellow:
Caused by: java.io.IOException: Cannot run program «node» (in directory «/Users/wanghaiyu/RNTest/app»): error=2, No such file or directory at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25) … 4 more Caused by: java.io.IOException: error=2, No such file or directory … 5 more
I have tried so many times,then I found when I using the
classpath ‘com.android.tools.build:gradle:1.3.1’
it will work well,who can tell me how to make the
classpath ‘com.android.tools.build:gradle:2.1.0’
also work well?because the gradle:2.1.0 is the newest.
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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
Gradle sync stop working with «Cannot run program «node» message #1457
Gradle sync stop working with «Cannot run program «node» message #1457
Comments
Environment
System:
OS: macOS 11.4
CPU: (8) arm64 Apple M1
Memory: 123.39 MB / 8.00 GB
Shell: 5.8 — /bin/zsh
Binaries:
Node: 16.5.0 — /opt/homebrew/bin/node
Yarn: 1.22.11 — /opt/homebrew/bin/yarn
npm: 7.19.1 — /opt/homebrew/bin/npm
Watchman: 4.9.0 — /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.10.1 — /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK:
API Levels: 29, 31
Build Tools: 29.0.2, 31.0.0
System Images: android-29 | Intel x86 Atom_64, android-31 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7583922
Xcode: 12.5/12E262 — /usr/bin/xcodebuild
Languages:
Java: 1.8.0_282 — /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.2 => 0.64.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Description
Hey, everyone. Surprisingly for me launching project with android studio stopped to work with gradle sync error. But I still can run project with npx react-native run-android
Caused by: java.io.IOException: Cannot run program "node" (in directory "/Users/zigi/Temp/droidSuck/android"): error=2, No such file or directory at java_lang_Runtime$exec$0.call(Unknown Source) at ReactNativeModules.getCommandOutput(/Users/zigi/Temp/droidSuck/node_modules/@react-native-community/cli-platform-android/native_modules.gradle:189) at ReactNativeModules$getCommandOutput$0.callCurrent(Unknown Source) at ReactNativeModules.getReactNativeConfig(/Users/zigi/Temp/droidSuck/node_modules/@react-native-community/cli-platform-android/native_modules.gradle:233) at ReactNativeModules$getReactNativeConfig.callCurrent(Unknown Source) at ReactNativeModules.(/Users/zigi/Temp/droidSuck/node_modules/@react-native-community/cli-platform-android/native_modules.gradle:84) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at native_modules_btdx1fw5o90mtgvk8m0ztnv6f.run(/Users/zigi/Temp/droidSuck/node_modules/@react-native-community/cli-platform-android/native_modules.gradle:287) at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91) . 159 more Caused by: java.io.IOException: error=2, No such file or directory
I found a workaround — I can launch the android studio from the terminal and error is gone, so my bet it’s doesn’t see node binary from brew folder, but I have no idea why this is happening and why it works before and suddenly stops
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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
java.io.IOException: Cannot run program «/opt/app-root/src/frontend/node/node» #636
java.io.IOException: Cannot run program «/opt/app-root/src/frontend/node/node» #636
Comments
What is the current behavior?
- Trying to run npm in a docker container with alpine linux
- the mvn install build runs normal until it hits the frontend-maven-plugin
- The build run fine on my MacBook, the problem is only if I run it in the docker container (which I do because we use OpenShift and source-to-image from OpenShift to create Kubernetes pods)
com.github.eirslett frontend-maven-plugin 1.5 v8.2.1 5.3.0 install node and npm install-node-and-npm generate-resources npm install npm generate-resources install npm build npm compile run build
If the current behavior is a bug, please provide the steps to reproduce.
- created a docker image with alpine linux
- mvn 3.5.0
- create a pom with the frontend plugin
What is the expected behavior?
npm install works
Please mention your frontend-maven-plugin and operating system version.
Alpine Linux in a Docker container with frontend-maven-plugin 1.5 (also tried 1.4)
[INFO] Installing node version v8.2.1 -- | [INFO] Downloading https://nodejs.org/dist/v8.2.1/node-v8.2.1-linux-x64.tar.gz to /opt/app-root/src/?/.m2/repository/com/github/eirslett/node/8.2.1/node-8.2.1-linux-x64.tar.gz | [INFO] No proxies configured | [INFO] No proxy was configured, downloading directly | [INFO] Unpacking /opt/app-root/src/?/.m2/repository/com/github/eirslett/node/8.2.1/node-8.2.1-linux-x64.tar.gz into /opt/app-root/src/frontend/node/tmp | [INFO] Copying node binary from /opt/app-root/src/frontend/node/tmp/node-v8.2.1-linux-x64/bin/node to /opt/app-root/src/frontend/node/node | [INFO] Extracting NPM | [INFO] Installed node locally. | [INFO] | [INFO] --- frontend-maven-plugin:1.5:npm (npm install) @ price-alert-backoffice-frontend --- | [INFO] Running 'npm install' in /opt/app-root/src/frontend | [INFO] ------------------------------------------------------------------------ | [INFO] Reactor Summary: | [INFO] | [INFO] backoffice-parent . SUCCESS [ 3.249 s] | [INFO] backoffice-frontend . FAILURE [ 5.257 s] | [INFO] backoffice-webapp . SKIPPED | [INFO] docker . SKIPPED | [INFO] ------------------------------------------------------------------------ | [INFO] BUILD FAILURE | [INFO] ------------------------------------------------------------------------ | [INFO] Total time: 10.832 s | [INFO] Finished at: 2017-08-02T09:51:22Z | [INFO] Final Memory: 34M/1501M | [INFO] ------------------------------------------------------------------------ | [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.5:npm (npm install) on project price-alert-backoffice-frontend: Failed to run task: 'npm install' failed. java.io.IOException: Cannot run program "/opt/app-root/src/frontend/node/node" (in directory "/opt/app-root/src/frontend"): error=2, No such file or directory -> [Help 1]
The text was updated successfully, but these errors were encountered: