search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Cannot install daypilot-pro-angular

Asked by Hamza
1 year ago.

Trying to install daypilot-pro-angular with Yarn Berry fails with the following error:

➤ YN0000: ┌ Resolution step
➤ YN0013: │ daypilot-pro-angular@https://npm.daypilot.org/daypilot-pro-angular/trial/2023.2.5574.tar.gz can't be found in the cache and will be fetched from the remote server
➤ YN0001: │ Error: EEXIST: file already exists, mkdir 'node_modules/daypilot-pro-angular/esm2020/lib'
    at makeError ([worker eval]:1:9150)
    at EEXIST ([worker eval]:1:9699)
    at ZipFS.mkdirSync ([worker eval]:1:48118)
    at extractArchiveTo ([worker eval]:1:466775)
    at async MessagePort.<anonymous> ([worker eval]:1:468587)
➤ YN0000: └ Completed in 7s 192ms
➤ YN0000: Failed with errors in 7s 193ms

## Environment

$ ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 15.2.7
Node: 16.19.1
Package Manager: yarn 3.5.1
OS: linux x64

Angular: 15.2.8
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1502.7
@angular-devkit/build-angular   15.2.7
@angular-devkit/core            15.2.7
@angular-devkit/schematics      15.2.7
@angular/cli                    15.2.7
@schematics/angular             15.2.7
rxjs                            7.8.1
typescript                      4.9.5

## How to reproduce

$ ng new dayplot-test --minimal --package-manager yarn
$ cd daypilot-test
$ yarn set version berry
$ yarn install
$ yarn add daypilot-pro-angular@https://npm.daypilot.org/daypilot-pro-angular/trial/2023.2.5574.tar.gz
Answer posted by Dan Letecky [DayPilot]
1 year ago.

The correct command is as follows:

yarn add https://npm.daypilot.org/daypilot-pro-angular/trial/2023.2.5574.tar.gz

You can also get the current version link at https://npm.daypilot.org.

Comment posted by Hamza
1 year ago.

That is not the correct command on the latest version of Yarn

Usage Error: It seems you are trying to add a package using a https:... url; we now require package names to be explicitly specified.
Try running the command again with the package name prefixed: yarn add my-package@https:...

$ yarn add [--json] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev] [-i,--interactive] [--cached] [--mode #0] ...
Comment posted by Dan Letecky [DayPilot]
1 year ago.

Yes, you are right. It looks like the new version of Yarn has troubles with extracting the archive. Unfortunately, there is not much we can do about that (it's a standard package that works with NPM and with previous versions of Yarn). So I recommend checking with Yarn developers - it looks like a Yarn bug.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.