node.js - mac下如何用命令行不带sudo安装nodejs环境
阿神
阿神 2017-04-17 16:09:13
0
2
418

请问mac下如何用命令行不带sudo安装nodejs环境?我见只有安装包安装的..
在弄appium,但它要求不能sudo安装nodejs...
谢谢!

阿神
阿神

闭关修行中......

reply all(2)
大家讲道理

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.

Ty80

brew install nodejs

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template