mardi 15 décembre 2015

browserSync proxy wont start

Cannot start brownser sync with proxy.

browser-sync start --proxy="quad.dev:3000" --files="*.html, css/*.css"

return error

 /usr/lib/node_modules/browser-sync/lib/cli/cli-options.js:113
        if (!value.match(/^(https?):\/\//)) {                   
TypeError: undefined is not a function
    at Object.opts.callbacks.proxy (/usr/lib/node_modules/browser-sync/lib/cli/cli-options.js:113:20)
    at /usr/lib/node_modules/browser-sync/lib/cli/cli-options.js:281:54
    at /usr/lib/node_modules/browser-sync/node_modules/immutable/dist/immutable.js:1139:46
    at /usr/lib/node_modules/browser-sync/node_modules/immutable/dist/immutable.js:1872:16
    at ValueNode.iterate (/usr/lib/node_modules/browser-sync/node_modules/immutable/dist/immutable.js:2239:12)
    at HashArrayMapNode.BitmapIndexedNode.iterate.HashArrayMapNode.iterate [as iterate] (/usr/lib/node_modules/browser-sync/node_modules/immutable/dist/immutable.js:2232:24)
    at Map.__iterate (/usr/lib/node_modules/browser-sync/node_modules/immutable/dist/immutable.js:1870:32)
    at KeyedIterable.mappedSequence.__iterateUncached (/usr/lib/node_modules/browser-sync/node_modules/immutable/dist/immutable.js:1138:23)
    at seqIterate (/usr/lib/node_modules/browser-sync/node_modules/immutable/dist/immutable.js:601:16)
    at KeyedIterable.Seq.__iterate (/usr/lib/node_modules/browser-sync/node_modules/immutable/dist/immutable.js:261:14)

I have no experience in node. Apreciate very much your help. Thanks

Aucun commentaire:

Enregistrer un commentaire