简体   繁体   中英

Why npm install redux does not install?

PS D:\PracticeRDX> npm install redux
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "redux" under a package
npm ERR! also called "redux". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR!     <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ti\AppData\Roaming\npm-cache\_logs\2021-12-27T15_10_10_560Z-debug.log
PS D:\PracticeRDX>

It looks like you are using the latest npm version (v7). As mention in the logs, try with npm install --legacy-peer-deps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM