Npm 在节点JS中与ZURB基金会相关的任何东西都会产生同样的错误。

Npm 在节点JS中与ZURB基金会相关的任何东西都会产生同样的错误。,npm,sass,zurb-foundation-6,Npm,Sass,Zurb Foundation 6,我正在尝试从此存储库访问模板: 我成功地克隆了存储库,但显然,为了获得实际的SAS,我需要安装npm依赖项。因此,我运行了npm安装,结果出现以下错误: events.js:160░░░░░░⸩ ⠼ extract:interpret: sill extract interpret@1.0.4 throw er; // Unhandled 'error' event ^ Error: write after end at writeAfterEnd (_stre

我正在尝试从此存储库访问模板: 我成功地克隆了存储库,但显然,为了获得实际的SAS,我需要安装npm依赖项。因此,我运行了npm安装,结果出现以下错误:

events.js:160░░░░░░⸩ ⠼ extract:interpret: sill extract interpret@1.0.4
      throw er; // Unhandled 'error' event
      ^

Error: write after end
    at writeAfterEnd (_stream_writable.js:193:12)
    at PassThrough.Writable.write (_stream_writable.js:240:5)
    at PassThrough.Writable.end (_stream_writable.js:477:10)
    at ReadEntry.entry.on (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/extract-stream.js:19:41)
    at emitOne (events.js:101:20)
    at ReadEntry.emit (events.js:188:7)
    at ReadEntry.emit (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:296:25)
    at ReadEntry.[maybeEmitEnd] (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:249:12)
    at ReadEntry.end (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:162:27)
    at Unpack.[consumeBody] (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:210:13)
    at Unpack.[consumeChunkSub] (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:391:40)
    at Unpack.[consumeChunk] (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:362:30)
    at Unzip.(anonymous function).on.chunk (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:291:59)
    at emitOne (events.js:96:13)
    at Unzip.emit (events.js:188:7)
    at Unzip.emit (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:296:25)
我使用的是npm版本6.0.0和节点v6.11.2。在mac上运行


在此之后,我尝试用<代码> NPM安装基础CLI-全局< /COD>安装基础CLI,但得到完全相同的错误。据我所知,我满足上列出的所有要求,不确定问题出在哪里。

好吧,原来是我的npm或节点版本。我更新了两个最新版本(npm 6.4.1,node v10.8.0),并且
npm install
运行良好。我想这里可以学到的是,在处理Zurb基金会的时候,试着使用最新的软件。

另一个解决方案是告诉我基础的裸露在哪里,我一直在到处寻找,似乎没有一个很简单的方法。(至少没有一个没有给我这样的错误)你克隆了正确的项目吗?如果你看一下我引用的github页面上的简短说明,我只是复制并粘贴了他们列出的克隆命令,即,
git clonehttps://github.com/zurb/foundation-sites-template 项目名称
同时,我真的只想要这个模板,它应该是随sass和编译器一起提供的,而不是其他任何东西。我只是尝试在github.com/zurb/foundation-sites上运行npm安装。同样的错误。