2017-12-18 378 views
0

我想安裝jsbin。
使用jsbin做到這一點。
我收到以下錯誤消息。
蔭做在linux.The命令我使用的是npm install jsbin給出錯誤

sudo npm install -g jsbin 

我得到這個錯誤

npm WARN deprecated [email protected]: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/ 
/usr/local/bin/jsbin -> /usr/local/lib/node_modules/jsbin/bin/jsbin 

> [email protected] postinstall /usr/local/lib/node_modules/jsbin 
> grunt build 

>> Local Npm module "grunt-contrib-uglify" not found. Is it installed? 
>> Local Npm module "grunt-contrib-jshint" not found. Is it installed? 
>> Local Npm module "grunt-contrib-concat" not found. Is it installed? 
Warning: Task "concat" not found. Use --force to continue. 

Aborted due to warnings. 
npm ERR! code ELIFECYCLE 
npm ERR! errno 3 
npm ERR! [email protected] postinstall: `grunt build` 
npm ERR! Exit status 3 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall 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!  /home/numan/.npm/_logs/2017-12-18T12_29_50_208Z-debug.log 

我應該怎麼做?

回答

1

將jsbin存儲庫克隆到您的機器上。

進入jsbin文件夾並做npm install

還有更多的細節https://github.com/jsbin/jsbin/blob/master/docs/running-your-own-jsbin.md#node

我與故宮安裝它安裝-g jsbin有同樣的問題,但通過克隆它工作正常git倉庫。

+0

它工作。但現在我得到了另一個錯誤。在配置期間這一個。 –

+0

它的完成謝謝你。 –