日期:2014-05-17  浏览次数:20817 次

如何在 windows环境中安装NPM

按照 http://npmjs.org/doc/README.htm步骤进行。

?

在执行node cli.js npm install -gf 的时候报错:

??npm ERR! Could not unpack C:\Documents and Settings\myname\npm-cache\npm\1.0.1

05\package.tgz to C:\Documents and Settings\myname\npm-cache\npm\1.0.105

npm ERR! Error: UNKNOWN, The operation completed successfully.

npm ERR! ?'C:/Documents and Settings/name/npm-cache/npm/1.0.105/___package.n

pm/package'.

?

按照提示,可手工将出错提示中的package.tgz解压到当前路径即可。