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

can't install browser sync on windows 7 #1447

Closed
xMokAx opened this issue Oct 19, 2017 · 1 comment
Closed

can't install browser sync on windows 7 #1447

xMokAx opened this issue Oct 19, 2017 · 1 comment

Comments

@xMokAx
Copy link

xMokAx commented Oct 19, 2017

i tired to install it normally using:
npm install -g browser-sync
then opened command prompt as administrator then tried again:
npm install -g browser-sync
then tried the solution mentioned here https://browsersync.io/docs/#windows-users i used this:
npm install -g browser-sync --msvs_version=2017
and i still got these errors:

npm WARN deprecated express@2.5.11: express 2.x series is deprecated
npm WARN deprecated connect@1.9.2: connect 1.x series is deprecated
C:\Users\Double Click\AppData\Roaming\npm\browser-sync -> C:\Users\Double Click\AppData\Roaming\npm\node_modules\browser-sync\bin\browser-sync.js
npm ERR! path C:\Users\Double Click\AppData\Roaming\npm\node_modules\browser-sync\node_modules\fsevents\node_modules\aproba\package.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\Double Click\AppData\Roaming\npm\node_modules\browser-sync\node_modules\fsevents\nod
e_modules\aproba\package.json'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\Double Click\AppData\Roaming\npm\node_modules\browser-sync\node_modules\fsevents
node_modules\aproba\package.json'
npm ERR! at Error (native)
npm ERR! stack: 'Error: EPERM: operation not permitted, unlink 'C:\Users\Double Click\AppData\Roaming\npm\node_modules\browser-sync\node_m
odules\fsevents\node_modules\aproba\package.json'\n at Error (native)',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\Users\Double Click\AppData\Roaming\npm\node_modules\browser-sync\node_modules\fsevents\node_modules\aproba\package.j
son' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Double Click\AppData\Roaming\npm-cache_logs\2017-10-19T14_40_47_062Z-debug.log

any help will be appreciated Thank You.

@xMokAx
Copy link
Author

xMokAx commented Oct 19, 2017

i found the solution for this it's a problem with npm not browser sync and here is a link for it npm/npm#18380 and the temporary solution is to downgrade npm to 5.3 using this command npm install npm@5.3 -g.

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

1 participant