search

Home  >  Q&A  >  body text

node.js - mac下如何用命令行不带sudo安装nodejs环境

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

阿神阿神2786 days ago420

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理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.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 16:11:13

    brew install nodejs

    reply
    0
  • Cancelreply