最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

在Mac OSX上安装npm失败

运维笔记admin17浏览0评论

在Mac OSX上安装npm失败

在Mac OSX上安装npm失败

安装NPM时收到错误,如下所示:

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

我的设置:

  • Mac OS X 10.6.3
  • GNU需要v1.26
  • 所以v0.4.12。

任何帮助非常感谢。

全输出:

curl .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 <".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: ".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
回答如下:

“无需安装”

在您的系统上安装make

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

我喜欢Homebrew:http://mxcl.github/homebrew/

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论