安装npm node-threadpool时遇到问题

时间:2018-08-02 10:56:24

标签: javascript node.js npm package threadpool

我正在尝试安装npm thread-pool软件包以通过并行执行操作来提高应用程序的性能 我已经开始执行以下命令

npm install node-threadpool

我遇到以下错误:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-threadpool@1.5.5 postinstall: `gitbook install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-threadpool@1.5.5 postinstall script.

我假设我需要在安装节点线程池之前安装gitbook。因此,我首先尝试使用以下命令安装gitbook

npm install gitbook-cli

这给了我另一个错误:

npm ERR! path D:\Scratch\Node Learning\FileParsing\node_modules\npmi\node_modules\npm\node_modules\ansistyles
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\Scratch\Node Learning\FileParsing\node_modules\npmi\node_modules\npm\node_modules\ansistyles' -> 'D:\Scratch\Node Learning\FileParsing\node_modules\npmi\node_modules\npm\node_modules\.ansistyles.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

我尝试通过安装ansistyles解决此问题:

npm install ansistyles

这给了我以前的错误。

现在,我无法获得如何安装此npm软件包的信息。是否有任何顺序才能安装npm install node-threadpool。对此的任何帮助将不胜感激。

0 个答案:

没有答案