-
-
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
4.0.1“vue ui” - Error in creating new project and installing Vue-cli on another computer #4692
Comments
vue-cli 4.0.1 构建时 也出现以上bug |
来了 (゚▽゚*) |
你是 哪个国家的 vue同学?
…------------------ 原始邮件 ------------------
发件人: "playfulhd"<notifications@github.com>;
发送时间: 2019年10月17日(星期四) 上午10:16
收件人: "vuejs/vue-cli"<vue-cli@noreply.github.com>;
抄送: "愚木头"<2676171993@qq.com>; "Comment"<comment@noreply.github.com>;
主题: Re: [vuejs/vue-cli] 4.0.1“vue ui” - Error in creating new project and installing Vue-cli on another computer (#4692)
vue-cli 4.0.1 构建时 也出现以上bug
来了 (゚▽゚*)
家用笔记本Windows10专业版,昨晚新安装node+vue直接不能启动ㄟ( ▔, ▔ )ㄏ
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
来自中国,使用汉语 |
Fixed in 4.0.2 |
我是在 vue add vuex 出现的同上问题 |
还有个问题 在vue create project 时, 所选定的router vuex 在构建后package 里 并未呈现 ,也没有安装的迹象 |
看评论官方回复了,刚更新了4.0.2,但是我测试没成功! |
好的 稍等 |
直接在3.x的旧项目里点右上角按钮运行好像还是有问题,先升级项目或者先用命令行吧 |
我刚试了你说的——vue create project 选择预设时,选中vue-router和vuex进行安装 |
4.0.2 可以了,正常 ,感觉 分文件,更友好了。多谢多谢 |
好了就OK,我还在测试着... |
正常使用了,感谢!! (*´v`)
|
我看到升级到4.0.3了,能够正常创建项目了!
� Installing @vue/cli-plugin-router...
? Use history mode for router? (Requires proper server setup for index fallback in production) YES � Invoking generator for @vue/cli-plugin-router... added 1 package from 1 contributor in 8.392s ✔ Successfully invoked generator for plugin: @vue/cli-plugin-router
You should review these changes with git diff and commit them.
其他: 如果以上是新版本的特性,请忽略我的建议! |
😂这是 bug
没主动动过这块代码,在 Mac 下也没发现问题,我晚上再用 Windows 看看…… |
经过对比,我发现了:在不同电脑上的环境(node+vue)相同,但是“vue ui”的预设选项不一样!
最后,昨天我提出的
经尝试,是没有问题的!(可能是需要重启电脑或者是浏览器的一些行为导致) |
vue ui 插件和依赖中的最新版本全是0.1.0,4.0.2、4.0.3都是 |
Version
4.0.1
Environment info
Steps to reproduce
1.Unload and empty Vue
2.Install Vue-cli
3.Create a new project using "vue ui"
4.If you can continue, select the "Vue router" button in the "plugin" menu.
What is expected?
Create and run projects
What is actually happening?
failed
Wrong information:
� Starting GUI...
� Ready on http://localhost:8000
removed 1 package in 31.525s
TypeError: apply is not a function
at C:\Users*\AppData\Roaming\nvm\v12.10.0\node_modules@vue\cli\lib\Gener
ator.js:103:7
at Array.forEach ()
at new Generator (C:\Users*\AppData\Roaming\nvm\v12.10.0\node_modules@vu
e\cli\lib\Generator.js:101:13)
at Function.runGenerator (C:\Users*\AppData\Roaming\nvm\v12.10.0\node_mod
ules@vue\cli\lib\invoke.js:123:21)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async install (C:\Users*\AppData\Roaming\nvm\v12.10.0\node_modules@vu
e\cli\node_modules@vue\cli-ui\ui-defaults\suggestions.js:82:5)
at async Object.handler (C:\Users*\AppData\Roaming\nvm\v12.10.0\node_modu
les@vue\cli\node_modules@vue\cli-ui\ui-defaults\suggestions.js:32:13)
at async Object.activate (C:\Users*\AppData\Roaming\nvm\v12.10.0\node_mod
ules@vue\cli\node_modules@vue\cli-ui\apollo-server\connectors\suggestions.js:8
2:14)
Wrong information:
� Starting GUI...
� Ready on http://localhost:8000
ERROR Error: Cannot resolve plugin router from package.json. Did you forget to
install it?
Error: Cannot resolve plugin router from package.json. Did you forget to install
it?
at invoke (C:\Users*\AppData\Roaming\nvm\v12.10.0\node_modules@vue\cli\l
ib\invoke.js:58:11)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async install (C:\Users*\AppData\Roaming\nvm\v12.10.0\node_modules@vu
e\cli\node_modules@vue\cli-ui\ui-defaults\suggestions.js:80:5)
at async Object.handler (C:\Users*\AppData\Roaming\nvm\v12.10.0\node_modu
les@vue\cli\node_modules@vue\cli-ui\ui-defaults\suggestions.js:18:13)
at async Object.activate (C:\Users*\AppData\Roaming\nvm\v12.10.0\node_mod
ules@vue\cli\node_modules@vue\cli-ui\apollo-server\connectors\suggestions.js:8
2:14)
The text was updated successfully, but these errors were encountered: