node.js - 无法在 MacOSX 上安装 Appium/Node Js

标签 node.js macos bash appium

我在 Mac OSX 上安装 Appium 时遇到问题。

brew uninstall node

brew install node

警告:安装后步骤未成功完成 您可以使用brew postinstall Node 重试

brew postinstall node

Error: Permission denied - /usr/local/lib/node_modules/npm

我应该在这里使用“SUDO”吗??

sudo brew postinstall node

最诚挚的问候, 科科

最佳答案

基于this forum ,如果向下滚动到底部...步骤应该是:

brew uninstall node
sudo rm -r /usr/local/lib/node_modules/
rm -r /Users/username/.npm/ # replace username with your user
brew install node

关于node.js - 无法在 MacOSX 上安装 Appium/Node Js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26212999/

相关文章:

jquery - jq 命令检查 json 数组响应是否具有使用 shell 脚本批准的特定用户名和状态

javascript - 返回自定义 promise

javascript - 无法获取脚本文件node js

node.js - 无法在 Node.js Web 应用程序中从 Prawn PDF 获取包含图像的 PDF

c++ - 将 osx 上的默认编译器从 llvm-g++ 更改为 g++

bash - 是否有从域中检索 NS 记录的 unix 命令?

node.js - 管理 NodeJS 配置标志的更好方法?

macos - "User interaction is not allowed"尝试使用 codesign 对 OSX 应用程序进行签名

objective-c - 即使在 macOS 应用程序的窗口之外也能永久检测 3 指平移手势

linux - 如何使用 bash 脚本替换文件名中的空格