prepare scripts not run for git modules on Jessie


(Eric Dahlseng) #1

What I Wanted to Do

Installed a git module. Expected the git prepare script to run.

What Happened Instead

The debug output said that the prepare script would run, but the distribution files were not actually created. It works properly on macOS, but not when run within the standard Node.js docker containers (jessie).

Reproduction Steps

npm install [git module]

Details

Platform Info

$ npm --versions
{ npm: '6.4.1',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.33.0',
  node: '8.14.0',
  openssl: '1.0.2q',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.23.2',
  v8: '6.2.414.72',
  zlib: '1.2.11' }
$ node -p process.platform
linux

(Eric Dahlseng) #2

Looks like a problem with me running NPM as root…