JPlayer how to load in node.js?

  node.js, question

Npm download package

npm install jplayer --save-dev


import 'jplayer';

Error prompt

TypeError: Cannot set property 'jPlayer' of undefined

All kinds of postures are wrong. Has anyone used this library?
I think his source code is compatible with node.js

Nodejs should not be usedrequire()To introduce modules

var jplayer = require("jplayer");