1

我在使用凉亭时遇到了一个问题。它在凉亭提取阶段不断失败。上周尝试了很多东西,但无法提取该 .tgz 文件,尽管 bower 能够完全下载它但无法提取它。尝试对正在下载的临时文件夹授予完全权限,甚至更改了临时文件夹但仍然无法正常工作。在 git 论坛中找不到任何解决方案。

在我同事系统的相邻系统上,它从下载到提取都运行良好。

progress      lib#* received 13.1MB of 13.5MB downloaded, 97%

bower progress      lib#* received 13.4MB of 13.5MB downloaded, 99%![enter image description here][1]
bower extract       lib#* latest-release-evolve-psi2.tgz
bower ENOENT        ENOENT, readdir 'C:\temp\userid\bower\lib-1304-bSbOIZ,function () {     if (cal
led) {       return;     }      removeFunction(path);      c
alled = true;   }'

Stack trace:
Error: ENOENT, readdir 'C:\temp\userid\
bower\lib-1304-bSbOIZ,function () {
    if (called) {
      return;
    }

    removeFunction(path);

    called = true;
  }'

Console trace:
Trace
    at StandardRenderer.error (D:\nodejs\node_modules\bower-
canary\lib\renderers\StandardRenderer.js:74:17)
    at Logger.analytics.setup.then.updateNotifier.packageNam
e (D:\nodejs\node_modules\bower-canary\bin\bower:114:22)
    at Logger.EventEmitter.emit (events.js:96:17)
    at Logger.emit (D:\nodejs\node_modules\bower-canary\node
_modules\bower-logger\lib\Logger.js:29:39)
    at D:\nodejs\node_modules\bower-canary\lib\commands\inst
all.js:35:16
    at _rejected (D:\nodejs\node_modules\bower-canary\node_m
odules\q\q.js:797:24)
    at Promise.then.self.promiseDispatch.threw (D:\nodejs\no
de_modules\bower-canary\node_modules\q\q.js:823:30)
    at Promise.when (D:\nodejs\node_modules\bower-canary\nod
e_modules\q\q.js:1035:31)
    at Promise.promise.promiseDispatch (D:\nodejs\node_modul
es\bower-canary\node_modules\q\q.js:741:41)
    at messages (D:\nodejs\node_modules\bower-canary\node_mo
dules\q\q.js:557:44)

System info:
Bower version: 1.3.0
Node version: 0.8.21
OS: Windows_NT 6.1.7601 ia32
4

1 回答 1

1

Ok. Issue solved. Issue was with older version of node 0.8. Node 0.8 was not installing files in NPM folder in appdata/roaming/npm. After installing node 0.10, it is working now. Issue closed.

于 2015-01-05T12:02:50.247 回答