Skip to content
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

关于mac系统vue-cli下载的模板依赖不全的问题 #340

Closed
gxycst opened this issue Feb 8, 2017 · 4 comments
Closed

关于mac系统vue-cli下载的模板依赖不全的问题 #340

gxycst opened this issue Feb 8, 2017 · 4 comments

Comments

@gxycst
Copy link

gxycst commented Feb 8, 2017

您好,我的vue-cli版本号为2.8.1,系统为OSX10.12.3,在使用vue init webpack projectname执行模板安装时,会出现依赖安装不全的情况导致使用npm run dev编译失败,提示缺少的nodejs模块为strip-ansi,ansi-html,html-entities.这几个模块需要手动安装,在安装完这几个模块时,再次执行npm run dev时还会提示ansi-regex模块,直到把这个模块安装好之后,才能正常执行编译。
另外我在windows下使用同样的操作时,所有的模块都能正常安装。不过在windows下的代码迁移到mac上时,提示缺少的依赖更多,除了上面的依赖需要手动安装外,还有throttle-debounce/debounce,throttle-debounce/throttle这两个模块无法安装,我手动使用npm install时,会提示没有权限。
第二个系统迁移出现不兼容找不到可能是正常现象吧,关于第一个需要手动安装几个依赖的问题,劳烦您有空解决下。
如果是我本人操作的问题,请怒斥我,谢谢尤老师和所有解答问题的人。

@posva
Copy link
Member

posva commented Feb 8, 2017

Thank you for your interest in this project.

However, your issue is a usage/support question, and the issue tracker is reserved exclusively for bug reports and feature requests (as outlined in our Contributing Guide).

We encourage you to ask it on the forum , Stack Overflow or on gitter and are happy to help you out there. Come back (to the relevant template repo) open a new issue if you find out there's a real issue


Translation may have translated things wrong, but if the npm installation failed then it's normal for the npm run dev command to fail

@posva posva closed this as completed Feb 8, 2017
@yyx990803
Copy link
Member

依赖装不下来跟 Vue 没有关系,这是 npm 的问题。建议你用国内的 npm 镜像源,稳定一点。

@yuzhougit
Copy link

我也碰到一样的问题,我用的就是国内的镜像源cnpm安装的

@kevinchung1026
Copy link

用国内的 npm 镜像源,意思是你把 npm 源设置为淘宝的,不用cnpm的命令

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants