cash
cash copied to clipboard
Not working some commands
Windows 10 Education.
- I install Node.js,
-
npm install cash-global -g
, - I restart my PC,
E:\Test>alias
"alias" is not recognized as an internal or external command, operable program or batch file
Is not recognized... appears, when I enter commands alias
, clear
, export
, false
, kill
, source
, true
and unalias
. Other commands work for me correctly.
What do I do incorrectly?
Thanks.
@Kristinita is this the same error as #83?
@nfischer , no, ls
command is work for me. I can't use teams which I transferred in the previous post without type cash
.
I do, as here:
C:\Users\Кот>npm install cash-global -g
/
> [email protected] preinstall C:\Users\Кот\AppData\Roaming\npm\node_modules\cash-global
> node ./bin/preinstall.js
Command exists: clear
Command exists: cp
Command exists: false
Command exists: kill
Command exists: ls
Command exists: mkdir
Command exists: mv
Command exists: pwd
Command exists: touch
Command exists: true
Command exists: cat
Command exists: grep
Command exists: rm
C:\Users\Кот\AppData\Roaming\npm\$ -> C:\Users\Кот\AppData\Roaming\npm\node_modules\cash-global\node_modules\cash\bin\cash.js
C:\Users\Кот\AppData\Roaming\npm\cash -> C:\Users\Кот\AppData\Roaming\npm\node_modules\cash-global\node_modules\cash\bin\cash.js
> [email protected] postinstall C:\Users\Кот\AppData\Roaming\npm\node_modules\cash-global
> node ./bin/postinstall.js
[email protected] C:\Users\Кот\AppData\Roaming\npm\node_modules\cash-global
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
C:\Users\Кот>ls -lah
ls: invalid option -- h
Try `ls --help' for more information.
C:\Users\Кот>
-lah
is invalid option.
If I type cash
, commands it works good:
C:\Users\Кот>source
"source" is not recognized as an internal or external command, operable program or batch file
C:\Users\Кот>cash
Кот@DESKTOP-0G54NVG:~$ source
-cash: source: filename argument required
source: usage: source filename [arguments]
Кот@DESKTOP-0G54NVG:~$
Thanks.
@Kristinita Do you have ls
installed from somewhere else? What happens if you just type ls
with no options?
I believe cash is designed to not install commands that already exist from another source, so as not to override them. So if your native ls
doesn't support -lah
, then that would be your problem.
Also, not all cash commands are part of the cash-global
package (again, by design). source
is an example of such a command.
@nfischer,
Do you have ls installed from somewhere else?
No. I didn't establish commands from other sources.
What happens if you just type ls with no options?
C:\Users\Кот>ls
AppData
Application Data
Contacts
Cookies
Desktop
Documents
Downloads
Favorites
IntelGraphicsProfiles
Links
Local Settings
Music
NTUSER.DAT
NTUSER.DAT{0c86075c-6a85-11e6-9f2c-c8d61711acfb}.TxR.0.regtrans-ms
NTUSER.DAT{0c86075c-6a85-11e6-9f2c-c8d61711acfb}.TxR.1.regtrans-ms
NTUSER.DAT{0c86075c-6a85-11e6-9f2c-c8d61711acfb}.TxR.2.regtrans-ms
NTUSER.DAT{0c86075c-6a85-11e6-9f2c-c8d61711acfb}.TxR.blf
NTUSER.DAT{0c86075d-6a85-11e6-9f2c-c8d61711acfb}.TM.blf
NTUSER.DAT{0c86075d-6a85-11e6-9f2c-c8d61711acfb}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{0c86075d-6a85-11e6-9f2c-c8d61711acfb}.TMContainer00000000000000000002.regtrans-ms
NetHood
OneDrive
Pictures
PrintHood
Recent
Saved Games
Searches
SendTo
Tracing
Videos
YandexDisk
dwhelper
kvirc4.ini
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini
wc
Мои документы
Шаблоны
главное меню
Also, not all cash commands are part of the cash-global package (again, by design). source is an example of such a command.
How I can make global all cash commands?
Thanks.
Since some sort of ls
is already installed (maybe it's builtin), cash-global
chose to not override it.
How I can make global all cash commands?
That's a question for @dthree. I suspect that this isn't currently available, but maybe he knows something I don't.
Actually in 2017.
Thanks.
Actually in 2018.
It would be nice, if alias
command will globally without cash
printing.
alias
command:
- More simple, than native Windows DOSKEY command,
- Not included as part of Cygwin, CoreUtils for Windows or another set UNIX commands for Windows.
Thanks.