Download from node lawsuit.tar.xz包, 解压到自己HOME内某个地方, 把npm/node的位置加到$PATH
For details, see How to use npm on mac system without issuing sudo command?
Actually, I don’t quite understand why so many people like to use sudo to run gem/pip/npm. People who understand how Unix works should know the necessity of isolating the global situation and users.
Download from node lawsuit
.tar.xz
包, 解压到自己HOME内某个地方, 把npm/node的位置加到$PATH
For details, see How to use npm on mac system without issuing sudo command?
Actually, I don’t quite understand why so many people like to use sudo to run gem/pip/npm. People who understand how Unix works should know the necessity of isolating the global situation and users.
brew install nodejs