在 Mac OSX 上安装 npm 失败

发布于 2024-12-12 05:02:31 字数 902 浏览 5 评论 0原文

安装 NPM 时出现错误,如下所示:

gzip: stdin: 解压正常,忽略尾随垃圾
/usr/local/bin/tar:孩子返回状态 2
/usr/local/bi/tar:错误不可恢复:立即退出
失败了

我的设置:

  • Mac OS X 10.6.3
  • GNU tar v1.26
  • Node v0.4.12

非常感谢任何帮助。

完整输出:

curl http://npmjs.org/install.sh |嘘
密码:
  % 总计 % 已接收 % Xferd 平均速度 时间 时间 时间 当前
                                 Dload 上传总花费左速度
100 7147 100 7147 0 0 40849 0 --:--:-- --:--:-- --:--:-- 86108
tar=/usr/local/bin/tar
版本:
焦油(GNU 焦油)1.26
版权所有 (C) 2011 自由软件基金会, Inc.
许可证 GPLv3+:GNU GPL 版本 3 或更高版本 <"http://gnu.org/licenses/gpl.html">。
这是免费软件:您可以自由更改和重新分发它。
在法律允许的范围内,不提供任何保证。

由约翰·吉尔摩和杰伊·芬拉森撰写。
无需 make 即可安装。这可能会失败。
获取:“http://registry.npmjs.org/npm/-/npm-1.0.96.tgz”

gzip:stdin:解压正常,忽略尾随垃圾
/usr/local/bin/tar:孩子返回状态 2
/usr/local/bin/tar:错误不可恢复:立即退出
失败了

I receive an error when installing NPM as follows:

gzip: stdin: decompression OK, trailing garbage ignored
/usr/local/bin/tar: Child returned status 2
/usr/local/bi/tar: Error is not recoverable: exiting now
It failed

My set up:

  • Mac OS X 10.6.3
  • GNU tar v1.26
  • Node v0.4.12

Any help greatly appreciated.

Full output:

curl http://npmjs.org/install.sh | sh
Password:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7147  100  7147    0     0  40849      0 --:--:-- --:--:-- --:--:-- 86108
tar=/usr/local/bin/tar
version:
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <"http://gnu.org/licenses/gpl.html">.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
Installing without make. This may fail.
fetching: "http://registry.npmjs.org/npm/-/npm-1.0.96.tgz"

gzip: stdin: decompression OK, trailing garbage ignored
/usr/local/bin/tar: Child returned status 2
/usr/local/bin/tar: Error is not recoverable: exiting now
It failed

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烂人 2024-12-19 05:02:31

“不使用 make 进行安装”

在您的系统上安装 make,

您可以通过安装 Mac 附带的开发人员工具或通过包管理器来获取 make。

我喜欢自制:
链接

"Installing without make"

Install make on your system

you can get make by installing the developer tools that came with your mac, or through a package manager.

I like Homebrew:
Link

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文