How to use js-ipfs in angular4

I create an angular4 project, and install ipfs like this:

npm install ipfs --save

I import ipfs in the code:

import IPFS from 'ipfs'

still now, the page seems ok, after i create a button for create ipfs instance:

let ipfs = new IPFS()

the browser console log throw exception:

Uncaught ReferenceError: createUtil is not defined
at eval (createUtil.js:4)
at Object…/…/…/…/ipld-ethereum/util/createUtil.js (vendor.bundle.js:2420)
at webpack_require (inline.bundle.js:55)
at eval (createResolver.js:4)
at Object…/…/…/…/ipld-ethereum/util/createResolver.js (vendor.bundle.js:2405)
at webpack_require (inline.bundle.js:55)
at Object.eval (index.js:3)
at eval (index.js:70)
at Object…/…/…/…/ipld-ethereum/eth-account-snapshot/index.js (vendor.bundle.js:2318)
at webpack_require (inline.bundle.js:55)

so, hwo to use js-ipfs in angular4

ipld-ethereum ends up requiring nodejs >=6.5.0. Could you send the output of running npm version?

node version 8.9.3
npm version 5.5.1

npm is 5.6.0 because i run npm i npm@latest -g

{ demo: '0.0.0',
  npm: '5.6.0',
  ares: '1.10.1-DEV',
  cldr: '31.0.1',
  http_parser: '2.7.0',
  icu: '59.1',
  modules: '57',
  nghttp2: '1.25.0',
  node: '8.9.3',
  openssl: '1.0.2n',
  tz: '2017b',
  unicode: '9.0',
  uv: '1.15.0',
  v8: '6.1.534.48',
  zlib: '1.2.11' }

who can help me,thx.