即使遵循指示,也没有yarnrc.yml

发布于 2025-02-11 20:10:50 字数 1768 浏览 4 评论 0原文

此说明: `https://devcenter.heroku.com/articles/migrating-to-yarn-2

says to run yarn install and it will create a .yarnrc.yml file. It does not. yarn 
install reports no errors and I can run yarn set version berry and I get:
Wed Jun 29 12:43:22 MDT 2022
➤ YN0000: Retrieving https://repo.yarnpkg.com/3.2.1/packages/yarnpkg-cli/bin/yarn.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-3.2.1.cjs
➤ YN0000: Done in 0s 327ms

I tried yarn set version 2 and then yarn install, but still no joy.
scottc in ~/Sites/vpermits.us on branch main > yarn set version 2    
Wed Jun 29 12:44:52 MDT 2022
➤ YN0000: Retrieving https://repo.yarnpkg.com/2.4.3/packages/yarnpkg-cli/bin/yarn.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-2.4.3.cjs
➤ YN0000: Done in 0s 391ms

My build fails with this error message:
-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Node.js app detected
   
-----> Creating runtime environment
   
   NPM_CONFIG_LOGLEVEL=error
   USE_YARN_CACHE=true
   NODE_VERBOSE=false
   NODE_ENV=production
   NODE_MODULES_CACHE=true
-----> Build failed
 !     The 'yarnrc.yml' file is not found
  It looks like the 'yarnrc.yml' file is missing from this project. Please
  make sure this file is checked into version control and made available to
  Heroku.
  To generate 'yarnrc.yml', make sure Yarn 2 is installed on your local
  machine and set the version in your project directory with:
   $ yarn set version berry
  Read more at the Yarn docs: https://yarnpkg.com/getting-started/install#per- 
 project-install
  
   https://devcenter.heroku.com/articles/nodejs-support

!拒绝,无法编译Node.js应用。 呢推动失败了

我目录中没有yarnrc.yml(或.yarnrc.yml)。

This instruction:
`https://devcenter.heroku.com/articles/migrating-to-yarn-2

says to run yarn install and it will create a .yarnrc.yml file. It does not. yarn 
install reports no errors and I can run yarn set version berry and I get:
Wed Jun 29 12:43:22 MDT 2022
➤ YN0000: Retrieving https://repo.yarnpkg.com/3.2.1/packages/yarnpkg-cli/bin/yarn.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-3.2.1.cjs
➤ YN0000: Done in 0s 327ms

I tried yarn set version 2 and then yarn install, but still no joy.
scottc in ~/Sites/vpermits.us on branch main > yarn set version 2    
Wed Jun 29 12:44:52 MDT 2022
➤ YN0000: Retrieving https://repo.yarnpkg.com/2.4.3/packages/yarnpkg-cli/bin/yarn.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-2.4.3.cjs
➤ YN0000: Done in 0s 391ms

My build fails with this error message:
-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Node.js app detected
   
-----> Creating runtime environment
   
   NPM_CONFIG_LOGLEVEL=error
   USE_YARN_CACHE=true
   NODE_VERBOSE=false
   NODE_ENV=production
   NODE_MODULES_CACHE=true
-----> Build failed
 !     The 'yarnrc.yml' file is not found
  It looks like the 'yarnrc.yml' file is missing from this project. Please
  make sure this file is checked into version control and made available to
  Heroku.
  To generate 'yarnrc.yml', make sure Yarn 2 is installed on your local
  machine and set the version in your project directory with:
   $ yarn set version berry
  Read more at the Yarn docs: https://yarnpkg.com/getting-started/install#per- 
 project-install
  
   https://devcenter.heroku.com/articles/nodejs-support

! Push rejected, failed to compile Node.js app.
! Push failed`

There is no yarnrc.yml (or .yarnrc.yml) in my directory.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文