Add this sentence /home/用户名/.bashrcalias node='node --harmony' to the file (create it if there is no such file)
Or execute this command every time you just start the console
It’s more troublesome under window. First, rename the executable file of node under window, more commonly called node_re, and then create a new text file anywhere and write
Add this sentence
/home/用户名/.bashrc
alias node='node --harmony'
to the file(create it if there is no such file) Or execute this command every time you just start the console
It’s more troublesome under window. First, rename the executable file of
in it.node
under window, more commonly callednode_re
, and then create a new text file anywhere and writeThen rename it to
node.bat
, and finally put the path to this file in the path environment variable