shadowsocks-manager icon indicating copy to clipboard operation
shadowsocks-manager copied to clipboard

npm升级(6.14.15 → 7.24.1)后无法安装

Open sophauer opened this issue 4 years ago • 0 comments

Centos 7,安装升级npm npm install -g npm 顺利成功 6.14.15 → 7.24.1 node -v v12.22.6 npm i -g shadowsocks-manager #安装报错

npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: [email protected] npm WARN Found: [email protected] npm WARN node_modules/shadowsocks-manager/node_modules/sqlite3 npm WARN sqlite3@"^5.0.0" from [email protected] npm WARN node_modules/shadowsocks-manager npm WARN shadowsocks-manager@"*" from the root project npm WARN 1 more (knex) npm WARN npm WARN Could not resolve dependency: npm WARN peerOptional sqlite3@"^4.1.1" from [email protected] npm WARN node_modules/shadowsocks-manager/node_modules/knex npm WARN knex@"0.20.9" from [email protected] npm WARN node_modules/shadowsocks-manager npm WARN npm WARN Conflicting peer dependency: [email protected] npm WARN node_modules/sqlite3 npm WARN peerOptional sqlite3@"^4.1.1" from [email protected] npm WARN node_modules/shadowsocks-manager/node_modules/knex npm WARN knex@"0.20.9" from [email protected] npm WARN node_modules/shadowsocks-manager npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future npm WARN deprecated [email protected]: Please upgrade to the maintained and new drop-in replacement @breejs/later at https://github.com/breejs/later 🚀 Thanks and happy hacking! 🚀 @niftylettuce npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

changed 463 packages, and audited 464 packages in 22s

9 packages are looking for funding run npm fund for details

#从Source安装报错 git clone https://github.com/shadowsocks/shadowsocks-manager.git cd shadowsocks-manager npm i

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/sqlite3 npm ERR! sqlite3@"^5.0.0" from the root project npm ERR! peerOptional sqlite3@"^5.0.0" from [email protected] npm ERR! node_modules/connect-session-knex/node_modules/knex npm ERR! knex@"^0.21.1" from [email protected] npm ERR! node_modules/connect-session-knex npm ERR! connect-session-knex@"^1.7.3" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peerOptional sqlite3@"^4.1.1" from [email protected] npm ERR! node_modules/knex npm ERR! knex@"0.20.9" from the root project npm ERR! npm ERR! Conflicting peer dependency: [email protected] npm ERR! node_modules/sqlite3 npm ERR! peerOptional sqlite3@"^4.1.1" from [email protected] npm ERR! node_modules/knex npm ERR! knex@"0.20.9" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /root/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-09-29T02_50_51_428Z-debug.log

sophauer avatar Sep 29 '21 02:09 sophauer