我正在尝试在我的项目中安装ejs,这是我第一次这样做。我尝试了几个命令,但似乎都不起作用。
下面是我尝试过的一些命令:
npm i ejs
npm i ejs --save
npm i ejs -gnpm ERR! code ENOSELF
npm ERR! Refusing to install package with name "ejs" under a package
npm ERR! also called "ejs". 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:是什么导致了这个问题?我如何解决这个问题?
发布于 2021-10-31 15:48:53
在package.json中,您可能将您的项目命名为" ejs ",在这种情况下,它会给出类似这样的错误,请将您的项目重命名为其他名称,然后再次尝试安装ejs。
https://stackoverflow.com/questions/69787740
复制相似问题