coa: Error when i install

HI

When I update all package in my project

` npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! coa@2.1.3 preinstall: start /B node compile.js & node compile.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the coa@2.1.3 preinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/mboutin/.npm/_logs/2021-11-04T14_01_45_544Z-debug.log `

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 10
  • Comments: 26

Most upvoted comments

I was getting an error too when I run yarn install, on a project that indirectly depends on coa@^2.0.2.

yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/coa/-/coa-2.0.4.tgz: Request failed \"404 Not Found\"".
info If you think this is a bug, please open a bug report with the information provided in "/home/dario/Projekte/MediPrime/mp/mp-ui/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I can work around this issue, by putting

  "resolutions": {
    "coa": "2.0.2"
  }

in my package.json.

It seems that version 2.0.4 was deleted from the npm and yarn repos because it contained malicious code. To solve resolutions of the ^2.0.2 range, a real fix would be to upload a proper version in that range, e.g. a 2.0.5 (even if it’s the same code as 2.0.2). And a 2.1.4 for the removed 2.1.3 respectively.

i managed to update my npm proxy index with npm dist-tag coa command, my problem solved

@FeSeason For using verdaccio, just manual remove coa in storage folder fix this problem.

already did.