tulsi icon indicating copy to clipboard operation
tulsi copied to clipboard

env: node: No such file or directory

Open lgyhero opened this issue 3 years ago • 3 comments

I'm following the tutorial: Build an iOS Application: https://docs.bazel.build/versions/master/tutorial/ios-app.html, and failed in step: 'Run and debug the app in the simulator'.

Tulsi was built and installed successfully, but error occurs when I'm creating a new project:

tulsi_erros

The error says: env: node: No such file or directory.

I'v already installed Node.js on my Mac, here is the node version from Terminal console. node_version

Could you please give some advice or solutions? thanks.

lgyhero avatar Jun 02 '21 03:06 lgyhero

What's the output of which node? I imagine it's somewhere tulsi (and all apps) don't see. If you quit tulsi and run open -a Tulsi from terminal that might work

keith avatar Jun 02 '21 03:06 keith

What's the output of which node? I imagine it's somewhere tulsi (and all apps) don't see. If you quit tulsi and run open -a Tulsi from terminal that might work

@keith Here is which node output: image

I tried run Tulsi with open -a Tulsi from terminal, and the same error occurs:

[2:15:45 PM](3): Running /usr/local/bin/bazel info '--override_repository=tulsi=/Users/XXX/Library/Application Support/Tulsi/0.20210318.88/Bazel'
[2:15:45 PM](3): Bazel command info:
/usr/local/bin/bazel info '--override_repository=tulsi=/Users/XXX/Library/Application Support/Tulsi/0.20210318.88/Bazel'
Exited with code 127

env: node: No such file or directory

[2:15:45 PM](0): Failed to query information about the Bazel workspace. Bazel exited with code 127 [Details]: env: node: No such file or directory

[2:15:45 PM](0): Was not able to extract the execution root from the workspace. This is a Tulsi or Bazel bug, please report.
[2:15:45 PM](3): Running /usr/local/bin/bazel --max_idle_secs=60 query '--override_repository=tulsi=/Users/XXX/Library/Application Support/Tulsi/0.20210318.88/Bazel' --announce_rc --noimplicit_deps --order_output=no --noshow_loading_progress --noshow_progress 'kind(rule, ios-app:all)' --output xml
[2:15:45 PM](3): Bazel command info:
/usr/local/bin/bazel --max_idle_secs=60 query '--override_repository=tulsi=/Users/XXX/Library/Application Support/Tulsi/0.20210318.88/Bazel' --announce_rc --noimplicit_deps --order_output=no --noshow_loading_progress --noshow_progress 'kind(rule, ios-app:all)' --output xml
Exited with code 127

env: node: No such file or directory

[2:15:45 PM](0): Failed to retrieve information about the Bazel workspace. This usually means that the contents of a BUILD file are incorrect or flags are missing. Read the message log carefully for details. [Details]: 

lgyhero avatar Jun 02 '21 06:06 lgyhero

I get same problem: ` 4:42:11 PM: Running /usr/local/bin/bazel info '--override_repository=tulsi=/Users/mac/Library/Application Support/Tulsi/0.20220209.88/Bazel' 4:42:11 PM: Bazel command info: /usr/local/bin/bazel info '--override_repository=tulsi=/Users/mac/Library/Application Support/Tulsi/0.20220209.88/Bazel' Exited with code 127

env: node: No such file or directory

4:42:11 PM: Failed to query information about the Bazel workspace. Bazel exited with code 127 [Details]: env: node: No such file or directory

4:42:11 PM: Was not able to extract the execution root from the workspace. This is a Tulsi or Bazel bug, please report. 4:42:11 PM: Running /usr/local/bin/bazel --max_idle_secs=60 query '--override_repository=tulsi=/Users/mac/Library/Application Support/Tulsi/0.20220209.88/Bazel' --announce_rc --noimplicit_deps --order_output=no --noshow_loading_progress --noshow_progress 'kind(rule, ios-app:all)' --output xml 4:42:11 PM: Bazel command info: /usr/local/bin/bazel --max_idle_secs=60 query '--override_repository=tulsi=/Users/mac/Library/Application Support/Tulsi/0.20220209.88/Bazel' --announce_rc --noimplicit_deps --order_output=no --noshow_loading_progress --noshow_progress 'kind(rule, ios-app:all)' --output xml Exited with code 127

env: node: No such file or directory

4:42:11 PM: Failed to retrieve information about the Bazel workspace. This usually means that the contents of a BUILD file are incorrect or flags are missing. Read the message log carefully for details. [Details]: `

~]$ node --version rvm: v14.17.2

Jacky-LinPeng avatar Jun 27 '22 08:06 Jacky-LinPeng

Thanks for submitting this issue but this tool is being deprecated. Please checkout rules_xcodeproj for a more complete and maintained Xcode integration.

keith avatar Feb 15 '23 17:02 keith