0

安装 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 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
4

1 回答 1

0

“无需制作即可安装”

在你的系统上安装 make

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

我喜欢自制: 链接

于 2011-10-27T01:26:10.790 回答