package-lock.json found. Your project contains lock files generated by tools,yarn和npm一起使用了解决方式

第一种方法:

移除node_modules  移除package-lock.json 
重新使用yarn install安装

第二种方法(感觉跟第一个一样 但是我用这个成功了):

移除node_modules  移除package-lock.json 之后先复制一份yarn.lock文件。
移除项目中的yarn.lock, 将刚刚复制的yarn.lock文件重新放在项目中,执行yarn install安装
  • 3
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
yarn add opencv-js yarn add v1.22.19 warning package.json: "dependencies" has dependency "css-loader" with range "^0.28.1" that collides with a dependency in "devDependencies" of the same name with version "^0.28.0" warning package.json: "dependencies" has dependency "webpack" with range "^2.5.0" that collides with a dependency in "devDependencies" of the same name with version "^2.2.1" warning package.json: "dependencies" has dependency "webpack-dev-server" with range "^2.4.5" that collides with a dependency in "devDependencies" of the same name with version "^2.3.0" warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. warning arc@0.1.0: "dependencies" has dependency "css-loader" with range "^0.28.1" that collides with a dependency in "devDependencies" of the same name with version "^0.28.0" warning arc@0.1.0: "dependencies" has dependency "webpack" with range "^2.5.0" that collides with a dependency in "devDependencies" of the same name with version "^2.2.1" warning arc@0.1.0: "dependencies" has dependency "webpack-dev-server" with range "^2.4.5" that collides with a dependency in "devDependencies" of the same name with version "^2.3.0" [1/4] Resolving packages... warning dragact > jest > jest-cli > jest-haste-map > sane > fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2 warning webpack > watchpack > watchpack-chokidar2 > chokidar > fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2 warning @kadira/storybook > webpack > watchpack > chokidar > fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2 error Received malformed response from registry for "opencv-js". The registry may be down. info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command
06-09
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值