npm Community Forum (Archive)

The npm community forum has been discontinued.

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

install script running when not supposed to

What I Wanted to Do

I wanted to have a script that executed ONLY when the package itself was installed, not the dependencies

What Happened Instead

The install script ran when it’s not supposed to

Reproduction Steps

git clone
cd node-python-funcs
npm i


Platform Info

$ npm --versions
{  npm: '6.3.0',
  ares: '1.14.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '64',
  napi: '3',
  nghttp2: '1.33.0',
  node: '10.10.0',
  openssl: '1.1.0i',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.23.0',
  v8: '',
  zlib: '1.2.11' }

$ node -p process.platform