错误的ERR! CB<>从未打电话! - browserSync

时间:2015-01-17 16:03:22

标签: node.js gruntjs browser-sync

我是新来的咕噜咕噜,正在用BrowserSync撞墙。我是尝试全局安装还是特定文件夹

npm install -g grunt-browser-sync

或者

npm install grunt-browser-sync --save-dev

我收到同样的错误:npm ERR! cb<> never called!我已尝试npm cache clear并删除了node_modules文件夹并再次运行npm install但似乎没有任何帮助。

Watch,Compass和Uglify都在工作。我无法成功安装browserSync。

这是我刚刚输入的命令的复制/粘贴以及结果。

D:\xampp\htdocs\testing>npm install grunt-browser-sync --save-dev
npm WARN package.json testing@1.0.0 No repository field.
npm WARN package.json testing@1.0.0 No README data
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\engine.io requires debug@'1.0.3' but will load
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\debug,
npm WARN unmet dependency which is version 0.7.4
grunt-browser-sync@1.5.3 node_modules\grunt-browser-sync
└── browser-sync@1.9.0 (emitter-steward@0.0.1, easy-extender@2.2.0, opt-merger@1
.1.0, commander@2.6.0, opn@1.0.1, object-path@0.8.1, minimist@1.1.0, eazy-logger
@2.1.0, ua-parser-js@0.7.3, browser-sync-client@1.0.1, lodash@2.4.1, dev-ip@0.1.
7, portscanner-plus@0.2.0, connect@3.3.4, serve-index@1.6.0, tfunk@3.0.0, serve-
static@1.8.0, glob-watcher@0.0.7, localtunnel@1.5.0, resp-modifier@1.0.1, foxy@7
.1.0)

D:\xampp\htdocs\testing>grunt browserSync
Running "browserSync:bsFiles" (browserSync) task
Warning: Cannot find module 'base64id' Use --force to continue.

Aborted due to warnings.

D:\xampp\htdocs\testing>

请告知。


在下面的sskips建议中,我收到以下错误:

D:\xampp\htdocs\testing>npm install base64id
npm WARN package.json testing@1.0.0 No repository field.
npm WARN package.json testing@1.0.0 No README data
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\engine.io requires debug@'1.0.3' but will load
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\debug,
npm WARN unmet dependency which is version 0.7.4
base64id@0.1.0 node_modules\base64id

D:\xampp\htdocs\testing>

1 个答案:

答案 0 :(得分:0)

你失去了什么。

按如下所示安装base64id,然后重试

  

npm install base64id