It looks like the bin section of package.json was updated to bin/pretty in 2.1.1. Unfortunately, the file is actually bin/pretty.js and so when you npm install the 2.1.1 version, it fails with this error:
npm ERR! path /Users/scott/dev/test-project/node_modules/@mechanicalhuman/bunyan-pretty/bin/pretty
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/scott/dev/test-project/node_modules/@mechanicalhuman/bunyan-pretty/bin/pretty'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/scott/.npm/_logs/2019-02-21T16_34_27_357Z-debug.log
When I install version 2.0.8 instead, this problem does not occur.
It looks like the
bin
section ofpackage.json
was updated tobin/pretty
in 2.1.1. Unfortunately, the file is actuallybin/pretty.js
and so when younpm install
the 2.1.1 version, it fails with this error:When I install version 2.0.8 instead, this problem does not occur.