yarn serve
出现问题
yarn run v1.22.10
$ vue-cli-service serve
/bin/sh: vue-cli-service: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
此时需要yarn 再yarn serve
如果出现
error camelcase@6.2.0: The engine "node" is incompatible with this module. Expected version ">=10". Got "8.9.4"
那输入
nvm ls
nvm use xxx(版本号,如v16.3.0)
本文探讨了在使用yarn serve时遇到的错误,包括`vue-cli-service`找不到和Node版本不兼容的问题。作者提供了修复方法,如检查并更新Node版本,以及解决路径问题。
3996

被折叠的 条评论
为什么被折叠?



