I would like to run prettier in the terminal command line on my linux machine, but I'm getting an error for some reason. Please advise. Here is my command:
yarn prettier --write test.js
Here is the error I'm getting
error Command failed with exit code 1.
Here is my file
foo({ num: 3 },
1, 2)
yarn is just the package manager. Once installed you should be able to just use prettier --write test.js
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.