最近,我在玩 gulp 教程时遇到了这个错误
Refusing to install gulp as a dependency of itself
执行时
npm install --save-dev gulp
可能是什么问题?
问题出在我自己的应用程序的名称上。
在package.json中,我不小心将其命名为gulp
{
"name": "gulp",
"version": "1.0.0",
"description": "tutorial",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "rmv",
"license": "ISC",
"devDependencies": {}
}
确保您的应用程序没有被称为您将使用的依赖项之一。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)