i18n-node: installation error

➜  test git:(master) ✗ npm i  i18n --save

> typechecker@2.0.8 preinstall /Applications/MAMP/htdocs/test/node_modules/extendr/node_modules/typechecker
> node ./cyclic.js

npm ERR! Cannot read property 'pause' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/steeply/.npm/_logs/2017-08-28T08_06_17_854Z-debug.log

➜  test git:(master) ✗ node -v && npm -v
v8.4.0
5.4.0

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (2 by maintainers)

Most upvoted comments

Node 8.8.1 bundle 5.4.2. The workaround that I work for me is:

"i18n": "HollyPony/i18n-node#upgrade-messageformat",

in my package.json. In think that is not perfect solution, but works 😉

This is fixed in npm 5.5.x, which will become npm “latest” soonish, at which point this complaint will hopefully stop recurring:

# this is happy
rm -rf node_modules/* && npm install npm@5.3 && ./node_modules/.bin/npm install
# this is sad
rm -rf node_modules/* && npm install npm@5.4 && ./node_modules/.bin/npm install
# this is happy again
rm -rf node_modules/* && npm install npm@5.5 && ./node_modules/.bin/npm install

So you can npm install -g npm@5.5, or npm install -g npm@5.3 if you’d rather not live on the edge.

I think this should be considered closed, perhaps you’d like to post a warning about npm 5.4 as we’re doing.

In addition, this issue can be solved upgrading the messageformat dependency to 1.0.0 since it is a complete rework : https://github.com/messageformat/messageformat.js/releases .

I am about to update all deps and also drop some support for legacy node versions - but 1st some PRs need to get merged