rushstack icon indicating copy to clipboard operation
rushstack copied to clipboard

[Rush] Getting error when running command "rush update"

Open gauravgoyal5 opened this issue 5 years ago • 12 comments

Please prefix the issue title with the project name i.e. [rush], [api-extractor] etc.

Is this a feature or a bug?

  • [ ] Feature
  • [X] Bug

Actual behavior.

When I am running rush update, it is showing error : The system cannot find the path specified. `The command failed: D:\SPFx\Code\Production\MyTestProject\common\temp\npm-local\node_modules.bin\npm install --cache D:\SPFx\Code\Production\MyTestProject\common\temp\npm-cache --tmp D:\SPFx\Code\Production\MyTestProject\common\temp\npm-tmp ERROR: Error: The command failed with exit code 1

Trying again (attempt #2)...

The system cannot find the path specified.

The command failed: D:\SPFx\Code\Production\MyTestProject\common\temp\npm-local\node_modules.bin\npm install --cache D:\SPFx\Code\Production\MyTestProject\common\temp\npm-cache --tmp D:\SPFx\Code\Production\MyTestProject\common\temp\npm-tmp ERROR: Error: The command failed with exit code 1

Trying again (attempt #3)...

The system cannot find the path specified.

The command failed: D:\SPFx\Code\Production\MyTestProject\common\temp\npm-local\node_modules.bin\npm install --cache D:\SPFx\Code\Production\MyTestProject\common\temp\npm-cache --tmp D:\SPFx\Code\Production\MyTestProject\common\temp\npm-tmp ERROR: Error: The command failed with exit code 1

Giving up after 3 attempts

ERROR: The command failed with exit code 1`

What is the expected behavior? It should run rush update command & then after rush build

If this is a bug, please provide the tool version, Node.js version, and OS.

  • Tool: NPM, Windows 10, @microsoft/generator-sharepoint, VS Code, rush
  • Tool Version: NPM : 6.13.4, @microsoft/generator-sharepoint:1.11.0, rush : 5.23.4
  • Node Version: 10.18.1
    • Is this a LTS version?Yes
    • Have you tested on a LTS version?Yes
  • OS:Windows 10

gauravgoyal5 avatar Sep 01 '20 07:09 gauravgoyal5