If you look at https://cli.vuejs.org/guide/cli-service.html it tells you that after installing @vue/cli-service ( which may be part of the standard CLI installation ) then vue-cli-service is available in npm scripts, but that if you want to access it directly then you need to use ./node_modules/.bin/vue-cli-service This worked for me, and I guess you could add ./node_modules/.bin to your $PATH if you were so inclined.

这个问题,我是在用Travis-CI的时候发现的,很傻逼,解决不了。
发现有一个issue,https://github.com/vuejs/vue-cli/issues/2404,也是很久以前就有了,但被官方关闭了,因为`cannot reproduce`,我真的无fuck可说。

现在这个有人这样回复,应该是可行的,虽然我还没试。

标签: vue-cli-service

添加新评论