Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Angular Basics Services in Angular Connecting a Service and Component

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

fsevents unsupported

Hi all,

I'm having some trouble getting Typescript to recognise the angular-in-memory-web-ap package. I've tried the following commands to install the package.

npm install angular-in-memory-web-api@0.2.4 --save --save-exact   -

or

npm install angular-in-memory-web-api --save


npm install file-loader --save-dev --save-exact 
import { InMemoryDbService } from 'angular-in-memory-web-api';

Which returns

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.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN photoblog@ No repository field.
npm WARN photoblog@ No license field.

So as you can see I use Windows to follow along but one of the modules doesn't seen to be supported. Any ideas as to what I can do? :)

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

You shouldn't have any issue here despite the message. Note that is says "OPTIONAL DEPENDENCY". The fsevents package is more of a patch for OSX to fix an issue that doesn't affect other OS's.