Giter Club home page Giter Club logo

Comments (4)

Allenmcc avatar Allenmcc commented on May 30, 2024

from jslib-base.

yanhaijing avatar yanhaijing commented on May 30, 2024

这是一个 feature,在2.0里去掉了对 yarn 的支持,这主要是因为,并未提供 yarn.lock 文件,这就不能保证 yarn 安装完,一定能够运行。

如果想使用 yarn 的话,可行的步骤如下:
第一步,先用 npm 安装,有了node_modules 后
第二步,在使用 yarn 安装
第三步,测试功能成功后,删掉 package-lock.json,提交 yarn.lock 即可

补充:现在有三个工具 npm yarn pnpm,每个工具不同版本,lock格式还不一样,不想维护这么多个lock文件,通过npm作为一个媒介,可以保证安装正确性,也能让大家使用自己想用的包管理工具

from jslib-base.

wy1009 avatar wy1009 commented on May 30, 2024

这是一个 feature,在2.0里去掉了对 yarn 的支持,这主要是因为,并未提供 yarn.lock 文件,这就不能保证 yarn 安装完,一定能够运行。

如果想使用 yarn 的话,可行的步骤如下: 第一步,先用 npm 安装,有了node_modules 后 第二步,在使用 yarn 安装 第三步,测试功能成功后,删掉 package-lock.json,提交 yarn.lock 即可

补充:现在有三个工具 npm yarn pnpm,每个工具不同版本,lock格式还不一样,不想维护这么多个lock文件,通过npm作为一个媒介,可以保证安装正确性,也能让大家使用自己想用的包管理工具

这是一个 feature,在2.0里去掉了对 yarn 的支持,这主要是因为,并未提供 yarn.lock 文件,这就不能保证 yarn 安装完,一定能够运行。

如果想使用 yarn 的话,可行的步骤如下: 第一步,先用 npm 安装,有了node_modules 后 第二步,在使用 yarn 安装 第三步,测试功能成功后,删掉 package-lock.json,提交 yarn.lock 即可

补充:现在有三个工具 npm yarn pnpm,每个工具不同版本,lock格式还不一样,不想维护这么多个lock文件,通过npm作为一个媒介,可以保证安装正确性,也能让大家使用自己想用的包管理工具

收到,感谢解答!

from jslib-base.

yanhaijing avatar yanhaijing commented on May 30, 2024

我感觉加一个yarn的支持也行,yarn的好弄,pnpm的麻烦 ಥ_ಥ

from jslib-base.

Related Issues (16)

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.