Tutorial adding HUE Motion sensor (Lux,Temp and Motion)

So which would be better and less resource hungry?

This: Hue motion sensors + remotes: custom component
Or this: Tutorial adding HUE Motion sensor (Lux,Temp and Motion)

BTW I tried the latter but fail at command: npm install (it says it doesn’t exist).