gulp-helper icon indicating copy to clipboard operation
gulp-helper copied to clipboard

Support Gulp bin in alternate directory

Open davejlong opened this issue 11 years ago • 5 comments

Provide a setting to support the Gulp binary in an alternate directory from /usr/local/bin/gulp

davejlong avatar Jul 12 '14 17:07 davejlong

+1 I'm using nvm and can't use this plugin

kamilbiela avatar Feb 18 '15 21:02 kamilbiela

+1. Because of this this package can't be used in Windows env.

Trudko avatar Mar 05 '15 17:03 Trudko

+1.

@kamilbiela, @Trudko, you can make it work while waiting for a patch:

  • open Settings > Packages.
  • search for gulp-helper.
  • go to Settings of the package.
  • click on View Code.
  • edit gulp-helper-view.coffee at line 35 to point to the correct path.
  • save and restart Atom.

ngryman avatar Mar 21 '15 20:03 ngryman

Well sure we can @ngryman but this isn't long term solution.

Trudko avatar Mar 22 '15 09:03 Trudko

+1

@ngryman provided a workaround, but as noted this is not a solution. In this day and age the assumption should be that people are using nvm, so being able to define the path to the gulp executable somewhere in settings would be great.

It should also be noted that the above solution only works if /usr/bin/node exists. For people like me who only use NVM, a quick workaround is to create a symlink to your current node path:

$ which node
/home/user/.nvm/versions/v0.12.4/bin/node

$ sudo ln -s /home/user/.nvm/versions/v0.12.4/bin/node /usr/bin/node

After that symlink is created (and you have changed the path for gulp as described above), gulp-helper should run smoothly -- having the ability to set the path for node would also be a great idea.

sudoforge avatar Sep 11 '15 23:09 sudoforge