Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BROWSERSYNC FAIL TO INSTALL #1963

Open
10 tasks
tanyaptz opened this issue May 16, 2022 · 1 comment
Open
10 tasks

BROWSERSYNC FAIL TO INSTALL #1963

tanyaptz opened this issue May 16, 2022 · 1 comment

Comments

@tanyaptz
Copy link

Issue details

Please provide issue details here.

Steps to reproduce/test case

Please provide necessary steps for reproduction of this issue, or better the
reduced test case (without any external dependencies)
.

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ ]
  • Node [ ]
  • Npm [ ]

Affected platforms

  • linux
  • windows
  • OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • API
  • Gulp
  • Grunt
  • CLI

If CLI, please paste the entire command below

{cli command here}

for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync

{Browsersync init code here}

@edwmurph
Copy link

not sure if this is related to the OP's issue, but when i `npm i` and run my app locally, now i get this error:
Error: Cannot find module 'browser-sync-client/dist/index.min.js'
Require stack:
- /Users/emurphy/code/starry/banshee/node_modules/browser-sync/dist/snippet.js
- /Users/emurphy/code/starry/banshee/node_modules/browser-sync/dist/hooks.js
- /Users/emurphy/code/starry/banshee/node_modules/browser-sync/dist/browser-sync.js
- /Users/emurphy/code/starry/banshee/node_modules/browser-sync/dist/index.js
- /Users/emurphy/code/starry/banshee/scripts/nodemon.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.resolve (node:internal/modules/cjs/helpers:108:19)
    at /Users/emurphy/code/starry/banshee/node_modules/browser-sync/dist/snippet.js:87:52
    at /Users/emurphy/code/starry/banshee/node_modules/browser-sync-client/index.js:59:39
    at Array.reduce (<anonymous>)
    at processItems (/Users/emurphy/code/starry/banshee/node_modules/browser-sync-client/index.js:54:10)
    at /Users/emurphy/code/starry/banshee/node_modules/browser-sync-client/index.js:89:22
    at call (/Users/emurphy/code/starry/banshee/node_modules/connect/index.js:239:7)
    at next (/Users/emurphy/code/starry/banshee/node_modules/connect/index.js:183:5)
    at next (/Users/emurphy/code/starry/banshee/node_modules/connect/index.js:161:14)

pinning browser-sync-client to 2.27.9 in my package.json seems to fix the error

the error is caused by the index.min.js file not existing which i confirmed in my node_modules

seemingly this was introduced in this commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants