-
Notifications
You must be signed in to change notification settings - Fork 136
ng command collides with angular-cli #110
Comments
Workaround for changing nailgun to ng2 and getting ng to refer to Angular CLI |
Did not work for me. Running NailGun's ng command when installed (or nailgun on Ubuntu) without any parameters/args prints out the help text. When you move the file (ng -> ng2, or basically ng -> *), then this breaks, and you get the "Connection refused" instead of the help text. At least for my company's build workflow, when I tried moving the NailGun executable, then our build stopped working, printing out "Connection refused". Not sure why simply renaming the executable causes these issues unless it is hardcoded somewhere. You also cannot symlink it to any other name. Here is the help text / version I am getting when it is successful:
|
Could you give Angular CLI a different name instead? |
Oh, of course, that works fine to use Angular (and ultimately what I did to play with angular-cli). The maintainers do not seem open to a name-change though. Feel free to see #111 for more on the issue with the binary. I am curious to see why so may dig into that issue when I have some spare time. |
The default installed
ng
command collides with the Angular-CLI project which unfortunately uses the same command name.This becomes an issue when you want to install both, and npm may overwrite the installed version of nailgun in
/usr/local/bin
which happened to me.On Ubuntu 16.04 when you install the nailgun package (
apt install nailgun
), it maps nailgun to the commandng-nailgun
instead ofng
. Not sure if theng
collision is why, but the documentation for nailgun is now out of sync with those using Ubuntu.Due to the popularity of both Angular-CLI and Ubuntu, I would suggest considering another command name to be consistent across platforms. While
ng-nailgun
is a bit long, anyone can always link it tong
for existing scripts.On that note though, thanks for this awesome tool! My company uses the protocol for a Node server to speed up running Node.js scripts: Nodegun.
The text was updated successfully, but these errors were encountered: