NPM 5.6.0 and global firebase-tools started failing, OK 6 days ago

nodejs
docker
npm

#1

Hi

Yesterday our builds started to fail when we run ‘npm install -g firebase-tools’. Prior to that they have been working fine for months.

We are using the ‘google/cloud-sdk’ image and installing node.js like this:

      curl -sL https://deb.nodesource.com/setup_6.x | bash -
      apt-get -qq install -y build-essential nodejs
      npm --silent install -g npm

and firebase lke this:

      npm install -g firebase-tools

We can work around this by not upgrading npm from 3.x to 5.x or with these commands in our config.yml

      mkdir ~/.npm-global
      npm config set prefix '~/.npm-global'
      export PATH=~/.npm-global/bin:$PATH
      npm install -g firebase-tools

We
The error is:

node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.7.2/node-v48-linux-x64-glibc.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.7.2 and node@6.12.3 (node-v48 ABI, glibc) (falling back to source compile with node-gyp)
gyp WARN EACCES user “undefined” does not have permission to access the dev dir "/root/.node-gyp/6.12.3"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/firebase-tools/node_modules/grpc/.node-gyp"
gyp WARN EACCES user “nobody” does not have permission to access the dev dir "/usr/lib/node_modules/firebase-tools/node_modules/grpc/.node-gyp/6.12.3"
gyp WARN EACCES attempting to reinstall using temporary dev dir “/usr/lib/node_modules/firebase-tools/node_modules/grpc/.node-gyp”


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.