如何确定 Meteor 是否已全局安装?我应该全局安装吗? [英] How can I determine whether Meteor is globally installed? Should I install globally?

查看:38
本文介绍了如何确定 Meteor 是否已全局安装?我应该全局安装吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试遵循 这些说明(关于使用 Xolvio 的 RTD 设置 Meteor 测试时)我很早就遇到了这条线:

While trying to follow these instructions (on setting up testing for Meteor using RTD by Xolvio) I came across this line early on:

确保你有 node 和 Meteor 并且这些依赖是全局的已安装(您可能需要将其作为 sudo 运行,具体取决于您的使用方式设置)

Ensure you have node and Meteor and that these dependencies globally installed (you may need to run this as sudo, depending on how you're setup)

如何快速判断本机是否全局安装了 Meteor?

How can I quickly determine whether Meteor has been installed globally on this machine?

推荐答案

如果您遵循了说明安装流星:

If you followed the instructions to install meteor:

$ curl https://install.meteor.com | /bin/sh

它将全局"安装(即适用于所有用户).您只需输入以下内容即可验证:

It will be installed "globally" (i.e. for all users). You can verify this just by typing:

$ which meteor

这应该返回(在 linux 或 mac 上):

This should return (on either linux or mac):

/usr/local/bin/meteor

/usr/local/bin 中的可执行文件应该可供所有用户使用.如果返回的内容类似于 /home/dave/local/bin/meteor,那么它可能只对单个用户可用.

Executables in /usr/local/bin should be available to all users. If this returned something like /home/dave/local/bin/meteor, then it may be available only to a single user.

这篇关于如何确定 Meteor 是否已全局安装?我应该全局安装吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆