4
2
I'm using cmder on windows: http://bliker.github.io/cmder/
I've installed node.js from nodejs.org.
I can run npm in cmder by running this command:
C:\Program Files\nodejs\npm.cmd
Now how can I create an alias for this so I can just run, for example npm install -g bower
?
I tried this:
alias npm="C:\Program Files\nodejs\npm.cmd"
But it reports back:
alias npm="C:\Program Files\nodejs\npm.cmd"
Files\nodejs\npm.cmd""] was unexpected at this time.
2You don't need to reboot your computer. To see the changes in your shell, simply open up a new instance - the new values will be visible there right away. – Oliver – 2015-11-10T11:42:19.703
1just need to reboot the terminal – Aequitas – 2017-11-16T22:38:51.003