簡體   English   中英

在Mac OSX上安裝npm失敗

[英]Installing npm fails on Mac OSX

安裝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 tar 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 

“不帶make進行安裝”

在系統上安裝make

您可以通過安裝Mac隨附的開發人員工具或通過軟件包管理器來獲得收益。

我喜歡Homebrew: http//mxcl.github.com/homebrew/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM