在 Mac OSX 上安装 npm 失败
安装 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“不使用 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