0

When I tried to install Browsersync by this way:

npm -i browser-sync --save-dev

I get some errors:

D:\projekt>npm install --save-dev browser-sync

npm WARN deprecated node-uuid@1.4.7: use uuid module instead projekt@1.0.0 D:\projekt `-- browser-sync@2.18.7

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm WARN projekt@1.0.0 No repository field.

What is the problem?

Nhan
  • 3,595
  • 6
  • 30
  • 38
Taisiia Boiko
  • 11
  • 1
  • 4

1 Answers1

1

They are only warnings:

npm WARN deprecated node-uuid@1.4.7: use uuid module instead projekt@1.0.0 D:\projekt `-- browser-sync@2.18.7

A deprecated module which is used by Browsersync.


npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

You are using Windows operating system instead of OSX, and it does not support fsevents package.


npm WARN projekt@1.0.0 No repository field.

You have not yet set Git repository URL of your project in package.json file. For example:

{
  "repository": {
    "type": "git",
    "url": "git+https://github.com/user/project"
  }
}
Nhan
  • 3,595
  • 6
  • 30
  • 38
  • how can I fix it ? – Taisiia Boiko Feb 13 '17 at 15:23
  • As I said, they are all warnings, not errors, you can leave them as they are and they do not affect your project. The first one depends on the developers of Browsersync. The second one, use MacOS (Apple computer). The third one if you host your project on a repository hosting service (GitHub, BitBucket), copy the hyperlink to `package.json` as above. – Nhan Feb 13 '17 at 16:34