Comments (5)
这个和本项目无关 暂时close 貌似是你的yarn有问题 不太清楚是不是国内有墙所以用不了 你可以去vue-cli下面看看有没有类似问题
from vue-typescript-admin-template.
我用的npm 没有用yarn,却报错yarn的错误搞不懂
from vue-typescript-admin-template.
能否详细解释你做的事情
from vue-typescript-admin-template.
目的:想做一个ts是demo,熟悉一下vue中ts的相关配置和用法;
看到官网推荐使用:
1. 如果没有安装 Vue CLI 就先安装
npm install --global @vue/cli
2. 创建一个新工程,并选择 "Manually select features (手动选择特性)" 选项
vue create my-project-xx
然后选择自己的配置,选完后回车,出现错误:
'yarn'
ERROR command failed: yarn --registry=https://registry.npm.taobao.org --distur
l=https://npm.taobao.org/dist
错误图片链接:
https://user-gold-cdn.xitu.io/2019/4/2/169dc07f8b4cb17c?w=656&h=210&f=png&s=11301
但是全程没用yarn,不知道为啥报上面与yarn的错
from vue-typescript-admin-template.
如果完全没有用到本项目的话 就不是这项目的问题了 听起来可能是vue cli的问题 猜测vue cli内部运行install强行prefer用yarn了 至于为啥这样的话我暂时也没啥思路 你可以去vue-cli上问问
from vue-typescript-admin-template.
Related Issues (20)
- 打包报错了 HOT 1
- 请问如何修改网页标题旁边的logo呢
- store动态挂载无效
- vscode下该使用什么插件来格式化typescript呢? HOT 1
- 能否改为采用vite呢? HOT 2
- element-ui 升级 HOT 1
- 项目维护
- Build error.
- 什么时候发布支持Vue3版的?
- is:issue is:open 您好,我想问下这个项目是vue2还是vue3的,因为我看这个vue版本是2.6
- Error: Rule can only have one resource source (provided resource and test + include + exclude) in HOT 1
- node 16以上无法正常运行,报错 HOT 3
- vue.config.js中添加devServer.proxy,无法代理 HOT 1
- 安装依赖之后,运行直接报错运行不起来 HOT 2
- 克隆下来,执行 yarn install 报如下错 HOT 2
- 依赖各种冲突 不能运行 HOT 2
- Vue 3.2 Support
- c
- 解决因为node版本问题导致项目无法运行 HOT 1
- 如何删除模板中多余控件
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-typescript-admin-template.