npm无法安装benchpressjs
in nodejs with 0 comment

npm无法安装benchpressjs

in nodejs with 0 comment

安装benchpressjs时,报了下面的错误:

> benchpressjs@1.2.11 install /root/nba/NodeBB/node_modules/benchpressjs
> cd rust/benchpress-rs && npm install

sh: 1: cd: can't cd to rust/benchpress-rs
npm WARN textcomplete.contenteditable@0.1.1 requires a peer of textcomplete@^0.14.2 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! benchpressjs@1.2.11 install: `cd rust/benchpress-rs && npm install`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the benchpressjs@1.2.11 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-06-12T08_50_59_938Z-debug.log

解决办法:

npm install benchpressjs@1.2.11 --ignore-scripts
cd node_modules/benchpressjs/rust/benchpress-rs
npm install
Responses