请问mac下如何用命令行不带sudo安装nodejs环境?我见只有安装包安装的..
在弄appium,但它要求不能sudo安装nodejs...
谢谢!
大家讲道理2017-04-17 16:11:13
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.