yarnpkg

Download private module from Github Package Registry via Yarn within a Github Action? Publishing works, but installing is met with '401 Unauthorized'

我与影子孤独终老i 提交于 2020-06-12 05:40:31
问题 For various reasons we are stuck using yarn managing our packages so we can't rely on a package-lock.json to use npm with github actions. We cannot get Yarn to authenticate as part of a github action. We've got our repo npmrc configured as: @COMPANY:registry=https://npm.pkg.github.com registry=https://registry.npmjs.org/ And we're using this action for yarn. Here's a basic setup where we're just trying to install the modules -- nothing more. name: CI on: [push] jobs: build: name: Test runs-on

How to specify local registry in yarn?

我只是一个虾纸丫 提交于 2020-06-11 17:36:18
问题 I have a local nexus server, I'd like yarn to look through it before going online, basically prefer-offline yarn install --prefer-offline --cache-folder C:\folder\yarn-cache --preferred-cache-folder C:\folder\yarn-cache --non-interactive --no-lockfile --registry http://server/repository/npm-group Yarn fails to find a dependency offline then fails to go online. I don't know if that can be fixed. 回答1: Create an npm (hosted) repository to use as your private registry. I believe you have already

Angular CLI with yarn

喜你入骨 提交于 2020-06-09 12:13:56
问题 How to change package manager for Angular Cli v6.0.3 to yarn? I tried: ng set --global packageManager=yarn But Angular says: get/set have been deprecated in favor of the config command. 回答1: ng config -g cli.packageManager yarn 回答2: You can set global configuration using ng config -g cli.packageManager yarn If you want to set the package manager for a particular project then go to the root directory of the project and use the following command ng config cli.packageManager yarn 回答3: you hav to

Angular CLI with yarn

被刻印的时光 ゝ 提交于 2020-06-09 12:13:08
问题 How to change package manager for Angular Cli v6.0.3 to yarn? I tried: ng set --global packageManager=yarn But Angular says: get/set have been deprecated in favor of the config command. 回答1: ng config -g cli.packageManager yarn 回答2: You can set global configuration using ng config -g cli.packageManager yarn If you want to set the package manager for a particular project then go to the root directory of the project and use the following command ng config cli.packageManager yarn 回答3: you hav to

Peer Dependencies In A Monorepo

懵懂的女人 提交于 2020-06-09 11:27:30
问题 When packages in a monorepo have peer dependencies, how should these dependencies be made available to them during development? For example a package at /packages/namespace/alpha/ might have a devDependency of styled-components in its package.json . Possible options: Declare the same dependencies as dev dependencies as well (unnecessary duplication and maintenance cost). Install the packages in the monorepo's route package.json (potential issues with module resolution when using yarn link . I

Invalid Regular Expression error after running expo start command

允我心安 提交于 2020-06-09 06:55:47
问题 I am new to React native development. After running: expo start or npm start or yarn start It returns the following error message: Invalid regular expression error How can I debug this? PS C:\Users\Admin\Desktop\React Course\New folder (2)\newproject> expo start Starting project at C:\Users\Admin\Desktop\React Course\New folder (2)\newproject Expo DevTools is running at http://localhost:19002 Opening DevTools in the browser... (press shift-d to disable) error Invalid regular expression: /(.*\

Invalid Regular Expression error after running expo start command

痴心易碎 提交于 2020-06-09 06:54:28
问题 I am new to React native development. After running: expo start or npm start or yarn start It returns the following error message: Invalid regular expression error How can I debug this? PS C:\Users\Admin\Desktop\React Course\New folder (2)\newproject> expo start Starting project at C:\Users\Admin\Desktop\React Course\New folder (2)\newproject Expo DevTools is running at http://localhost:19002 Opening DevTools in the browser... (press shift-d to disable) error Invalid regular expression: /(.*\

Ignore yarn missing unmet dependencies warning in azure pipelines

时光怂恿深爱的人放手 提交于 2020-05-28 07:54:58
问题 I'm struggling to get a build with yarn working on azure pipelines build. I'm running on a self hosted windows 10 machine, with Node 8 and Yarn 1.13. My pipeline definition can be boiled down to: steps: - powershell: | yarn install --frozen-lockfile and the output I'm getting is ##[section]Starting: PowerShell ============================================================================== Task : PowerShell Description : Run a PowerShell script on Windows, macOS, or Linux. Version : 2.140.2

Ignore yarn missing unmet dependencies warning in azure pipelines

Deadly 提交于 2020-05-28 07:54:39
问题 I'm struggling to get a build with yarn working on azure pipelines build. I'm running on a self hosted windows 10 machine, with Node 8 and Yarn 1.13. My pipeline definition can be boiled down to: steps: - powershell: | yarn install --frozen-lockfile and the output I'm getting is ##[section]Starting: PowerShell ============================================================================== Task : PowerShell Description : Run a PowerShell script on Windows, macOS, or Linux. Version : 2.140.2

Ignore yarn missing unmet dependencies warning in azure pipelines

只愿长相守 提交于 2020-05-28 07:54:05
问题 I'm struggling to get a build with yarn working on azure pipelines build. I'm running on a self hosted windows 10 machine, with Node 8 and Yarn 1.13. My pipeline definition can be boiled down to: steps: - powershell: | yarn install --frozen-lockfile and the output I'm getting is ##[section]Starting: PowerShell ============================================================================== Task : PowerShell Description : Run a PowerShell script on Windows, macOS, or Linux. Version : 2.140.2