kucherenko / jscpd

Copy/paste detector for programming source code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install project dependency error

fyangstudio opened this issue Β· comments

Describe the bug
package.json

{
  "name": "xxx",
  "version": "0.1.0",
  "dependencies": {
    "jscpd": "^3.3.1"
  }
}

run yarn
show the error:
image

Expected behavior
No error

Desktop (please complete the following information):

  • OS Version [e.g. 22] ,macOS 10.15.6
  • NodeJS Version [e.g. 9, 10, 11] v10.15.3
  • jscpd version 3.3.1

Thank you for the report, will fix the issue soon

I trying to reproduce the issue and can't do it.

I use node with same version - v10.15.3, I use yarn version 1.22.4.

$> yarn config get registry
https://registry.yarnpkg.com

I run following command with following result:

yarn
yarn install v1.22.4
info No lockfile found.
[1/4] πŸ”  Resolving packages...
warning jscpd > @jscpd/finder > pug > pug-filters > constantinople > babel-types > babel-runtime > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ”¨  Building fresh packages...
success Saved lockfile.
✨  Done in 4.23s.

Could you please provide more information about the issue?

thx, maybe there some thing wrong with yarn cache