Refusing to install gulp as a dependency of itself

0

When I run:

  

npm install --save-dev gulp

The error happens:

npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "i" "gulp"
npm ERR! node v6.11.2
npm ERR! npm  v3.10.10
npm ERR! code ENOSELF

npm ERR! Refusing to install gulp as a dependency of itself

Where important is:

 npm ERR! Refusing to install gulp as a dependency of itself
    
asked by anonymous 08.10.2018 / 22:21

1 answer

4

I discovered that I can not call my project in the gulp package.json, so I switched to gulpProject

{
  "name": "gulpProject",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "gulp": "^3.9.1"
  }
}
    
08.10.2018 / 22:21