[英]prettier js formatter in command line
I would like to run prettier in the terminal command line on my linux machine, but I'm getting an error for some reason. 我想在我的linux机器上的终端命令行运行更漂亮 ,但由于某种原因我收到错误。 Please advise.
请指教。 Here is my command:
这是我的命令:
yarn prettier --write test.js
纱线漂亮 - 写测试.js
Here is the error I'm getting 这是我得到的错误
error Command failed with exit code 1.
错误命令失败,退出代码为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
一旦安装,你应该能够使用
prettier --write test.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.