npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm install of haraka from github ends up with a missing "bin/haraka" which is present in source

What I Wanted to Do

install haraka from github: npm i 'haraka/Haraka' -g --no-bin-links

without --no-bin-links the install will fail which is likely caused by the missing bin/haraka

What Happened Instead

bin/haraka is missing from the installation directory

Reproduction Steps

  1. run npm i 'haraka/Haraka' -g --no-bin-links
  2. look for bin/haraka in the install dir (~/.nvm/versions/node/v10.13.0/lib/node_modules/Haraka/ for me)


reproduces consistently on Ubuntu 14.04 and 16.04, haven’t tried other OSes

Platform Info

$ npm --versions
{ npm: '6.4.1',
  ares: '1.14.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '64',
  napi: '3',
  nghttp2: '1.34.0',
  node: '10.13.0',
  openssl: '1.1.0i',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.23.2',
  v8: '',
  zlib: '1.2.11' }
$ node -p process.platform

node: 10.13.0

They had “Haraka” in .gitignore, which in git does not match bin/haraka, but npm was deleting .gitignored files when doing a git install and doing it incorrectly (case insensitively)