Code Monkey home page Code Monkey logo

Comments (5)

Armour avatar Armour commented on May 16, 2024

这个和本项目无关 暂时close 貌似是你的yarn有问题 不太清楚是不是国内有墙所以用不了 你可以去vue-cli下面看看有没有类似问题

from vue-typescript-admin-template.

zhangaofei avatar zhangaofei commented on May 16, 2024

我用的npm 没有用yarn,却报错yarn的错误搞不懂

from vue-typescript-admin-template.

Armour avatar Armour commented on May 16, 2024

能否详细解释你做的事情

from vue-typescript-admin-template.

zhangaofei avatar zhangaofei commented on May 16, 2024

目的:想做一个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.

Armour avatar Armour commented on May 16, 2024

如果完全没有用到本项目的话 就不是这项目的问题了 听起来可能是vue cli的问题 猜测vue cli内部运行install强行prefer用yarn了 至于为啥这样的话我暂时也没啥思路 你可以去vue-cli上问问

from vue-typescript-admin-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.