事情是这样的,今天早上打算使用 sequelize ,操作 mysql 数据库,安装 sequelize 的时候开始报错了。我以为是自己的名称写错了。但是我上 npm 上面寻找安装方法,结果复制粘贴上的也没有用。
PSD:\nodejs\sequelize> npm install sequelize -D
npm ERR! code ENOSELF
npm ERR! Refusing to install packagewith name "sequelize" under a package
npm ERR! also called "sequelize". 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 ofthis run can be found in:
npm ERR!C:\Users\DELL\AppData\Roaming\npm-cache\_logs\2020-07-26T00_45_34_414Z-debug.log
PSD:\nodejs\sequelize>
npm install sequelize -D npm ERR! code ENOSELF npm ERR! Refusing to install package with name “sequ
事情是这样的,今天早上打算使用 sequelize ,操作 mysql 数据库,安装 sequelize 的时候开始报错了。我以为是自己的名称写错了。但是我上 npm 上面寻找安装方法,结果复制粘贴上的也没有用。PS D:\nodejs\sequelize> npm install sequelize -Dnpm ERR! code ENOSELFnpm ERR! Refusing to install package with name "sequelize" under a package