-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module 'vue-template-compiler/package.json' #2109
Comments
Since rc.11 we make A temporary workaround is to manually run |
Closed via c42cb94 |
@yyx990803
|
@zlab cli-service 的这个配置倒不会产生问题,因为 cli-service 肯定是在 Vue CLI 创建的项目里被引用的,而默认的项目模板里已经将 vue-template-compiler 作为 devDependencies 引入了 vue-cli/packages/@vue/cli-service/generator/index.js Lines 12 to 14 in d0320eb
|
@sodatea 我不是用cli创建的默认模版 |
@zlab 那请自行添加到项目的 |
This comment has been minimized.
This comment has been minimized.
@sodatea I added vue-template-compiler but the problem persists..
|
@raphael10-collab |
why not ? |
Installing this globally didn't fix it for me, but installing it locally did. |
running this worked for me (as said previously, not globally): |
Version
3.0.0-rc.11
Node and OS info
node v10.8.0, npm 6.2.0, macOS High Sierra
Steps to reproduce
create empty project and try to serve it
vue create test -p default && cd test && vue serve src/main.js
What is expected?
serving empty project
What is actually happening?
npm run server
(which is linked tovue-cli-service serve
) works, butvue serve
should also work according tovue serve --help
The text was updated successfully, but these errors were encountered: