Unable to execute jsx command

Asked 2 years ago, Updated 2 years ago, 73 views

Sorry for the beginner's question.I installed node.js and put react-tools in the npm command.
It was written that you can use npm jsx if you add react-tools, but you can't.
npm install-gjsx also shows no files.
I would appreciate it if you could tell me how I can compile it

reactjs npm

2022-09-30 10:40

1 Answers

Answer npm as if you are using it with the -g option.
You can investigate the situation with the following command, so please try it.
If the error persists, edit the command, output, execution environment, etc. to the question to make it easier to get answers.

npm list-g react-tools
# Verify that it is installed
# Sample Output - >
# /usr/local/lib
# [email protected]

jsx --version
# Verify the jsx Command Can Be Executed
# Sample Output - >
# 0.13.3

npm bin-g
# Determine where the executable is located.
# Sample Output - >
# /usr/local/bin

/usr/local/bin/jsx --version
# Check if jsx can run in full path (as investigated by npm bin-g)
# Sample Output - >
# 0.13.3


2022-09-30 10:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.