echo prefix = ~/.node
It just prints the string to standard output. The shell will expand ~ to the value of $HOME , so the printed line may be something like "prefix = /home/randwa1k" (without quotes, of course).
... >> ~/.npmrc
This redirects the output of the echo command to the ~/.npmrc , which expands to the same value as $HOME/.npmrc . Using >> rather than > means that the output is appended to the end of the file.
Thus, the command as a whole adds one line of text to a file named .npmrc in your home directory.
The effects of this change in the .npmrc file will depend on which programs read this file.
Keith thompson
source share