question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bin conflict with gulp & gulp-cli

See original GitHub issue

Npm install fails when having gulp-cli as dependency and gulp as devDependency. This is probably because both of them try to link their own gulp bin.

∴ slush git:(4.0) npm install

> v8flags@1.0.8 install /Users/heikki/Desktop/heikki/slush/node_modules/gulp/node_modules/v8flags
> node fetch.js


> v8flags@1.0.8 install /Users/heikki/Desktop/heikki/slush/node_modules/gulp-cli/node_modules/v8flags
> node fetch.js

npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/Users/heikki/.nvm-fish/v0.10.35/bin/npm" "install"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.17
npm ERR! path ../gulp-cli/bin/gulp.js
npm ERR! code EEXIST
npm ERR! errno 47

npm ERR! EEXIST, symlink '../gulp-cli/bin/gulp.js'
File exists: ../gulp-cli/bin/gulp.js
Move it away, and try again. 

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/heikki/Desktop/heikki/slush/npm-debug.log

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:53 (37 by maintainers)

github_iconTop GitHub Comments

1reaction
phatedcommented, Jan 15, 2015

@silkentrance no, this is an npm issue as stated above

0reactions
amcsicommented, Nov 27, 2016

For those of you having this issue with yarn (since they didn’t fix it there I think), you can fix this by manually adding this to your package.json:

  "bin": {
    "react-native": "node_modules/react-native-cli/index.js"
  },

And then removing node_modules and your lockfile and installing again.

With this your local package.json’s bin entry will take precedence over the ones defined in the external packages, and you should be able to control whose bin file to use this way.

EDIT: actually even locally defining it doesn’t give it precedence -.-

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gulp: /usr/local/bin/gulp: No such file or directory
I've been using gulp without issue for months, but managed to screw it up somehow. I've removed gulp and gulp-cli (using npm) both...
Read more >
gulp-conflict - npm
Check if files in stream conflict with those in target dir, with option to use new, keep old, show diff, etc. Primary objective....
Read more >
Quick fix for "gulp: command not found" error
How to fix this error by making sure your Gulp is installed locally and some ... You can do this by typing in...
Read more >
Getting Started with Gulp.js - Semaphore Tutorial
Gulp is a command-line task runner for Node.js. Gulp let us automate processes and run repetitive tasks with ease. What makes Gulp different ......
Read more >
'gulp' is not recognized as an internal or external command ...
you should run gulp from folder where gulpfile.js is available. ... Files\nodejs\nodemodules\npm\bin\npm-cli.js" "run" "serve" npm ERR! node v6.9.5 npm ERR!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found