FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Can't run "npm run build" within common or server packages due to a genver error

Open KRyan opened this issue 6 years ago • 2 comments

Describe the bug

Running "npm run build" (or specifically, "npm run build:genver") fails within several common/ and server/ packages.

To Reproduce

Steps to reproduce the behavior:

  1. In a cloned repository, "npm install" and "npm build".
  2. Change directory to \common\lib\common-utils
  3. "npm run build"

Expected: build to run Actual: 'gen-version' is not recognized as an internal or external command, operable program or batch file.

Note: it also repros in \server* directories such as \server\routerlicious\packages\services

Expected behavior

Build to complete successfully

KRyan avatar Sep 11 '20 21:09 KRyan

@KRyan did you run npm i from the common-utils package dir? The common packages are not managed by Lerna so they're like standalone packages in the repo.

tylerbutler avatar Sep 11 '20 21:09 tylerbutler

@tylerbutler -- ah, thanks, that was the issue! After running npm i in the appropriate directory, it works.

KRyan avatar Sep 11 '20 21:09 KRyan