Cli-microsoft365: Bug report: npm install fails

Created on 6 Aug 2020  路  3Comments  路  Source: pnp/cli-microsoft365

Description

The command '/bin/bash -c npm i -g @pnp/office365-cli' returned a non-zero code: 1

Steps to reproduce

FROM tensorflow/tensorflow:1.14.0-gpu-py3
RUN apt-get update && apt-get install -y libsm6 libxext6 libfontconfig1 libxrender1 libglib2.0-0 libicu-dev git git-lfs zip unzip nodejs npm screen && rm -rf /var/lib/apt/lists/*

ADD ./requirements.txt /requirements.txt
WORKDIR /

RUN pip install -r requirements.txt -f https://download.pytorch.org/whl/torch_stable.html

RUN az extension add --name azure-devops

RUN npm i -g @pnp/office365-cli

Expected result

For it to work.

Actual result

npm ERR! Linux 4.19.76-linuxkit
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" "-g" "@pnp/[email protected]"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code E404

npm ERR! 404 Not found : @pnp/office365-cli
npm ERR! 404
npm ERR! 404  '@pnp/office365-cli' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /npm-debug.log

Environment

Any machine with npm.

question waiting on response

Most helpful comment

@VelinGeorgiev i was using the default registry, the issue seems to have been solved. It only happend for a 3-4 hour window in the day i raised the issue.

All 3 comments

Hi @OodapowUiPath are you using a custom npm registry?

The CLI exists in the official npm registry here https://www.npmjs.com/package/@pnp/office365-cli and it can be downloaded as long as your .npmrc is empty or has the official npmjs registry listed.

@VelinGeorgiev i was using the default registry, the issue seems to have been solved. It only happend for a 3-4 hour window in the day i raised the issue.

Thank you for update @OodapowUiPath 馃憤馃徎

Was this page helpful?
0 / 5 - 0 ratings

Related issues

waldekmastykarz picture waldekmastykarz  路  3Comments

andrewconnell picture andrewconnell  路  3Comments

VelinGeorgiev picture VelinGeorgiev  路  3Comments

arjunumenon picture arjunumenon  路  3Comments

vineet2907 picture vineet2907  路  3Comments