← All tasks
javascriptnrwl/nx #15452Not a task: not reproduced

"NX Cannot find module '@nrwl/nx-linux-arm64-gnu'" when running angular universal in a node:18 docker

envgap__nrwl__nx-15452

Original GitHub issue ↗Opened 2023-03-05

01 / FAILURE SIGNATURE

As reported upstream

Now I get the following error:
Not a benchmark task.
  • No curated issue-specific recipe or verified environment fix is available.

02 / ENVIRONMENT RECIPE

Base commit
Not freshly verified
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

nrwl/nx #15452 · read the original issue
### Current Behavior

I just migrated using `nx migrate latest`

```

angular packages: 15.1.1 => 15.2.1



@nrwl/angular: 15.7.2 => 15.8.5

@nrwl/webpack: 15.7.2 => 15.8.5

```



I'm running angular universal in development mode and start it in a docker `node:18`



Now I get the following error:

`  >  NX   Cannot find module '@nrwl/nx-linux-arm64-gnu'`



As described in a similar issue, https://github.com/nrwl/nx/issues/8969

I tried to delete my `node_modules` and clear my cache.



It seems like my application works if I run my nx command outside docker:

`nx run my-app:serve-ssr`



When starting my docker image, it throws the error above.



If i check my package-lock.json the package is listed under "optionalDependencies":

`"@nrwl/nx-linux-arm64-gnu": "15.8.5"`

### Expected Behavior

After the migration it may should have installed the missing module `@nrwl/nx-linux-arm64-gnu` and run.

### GitHub Repo

_No response_

### Steps to Reproduce

1.

# Docker Image:

```

FROM node:18



RUN mkdir -p /app

WORKDIR /app/



COPY package*.json ./

COPY decorate-angular-cli.js ./decorate-angular-cli.js

RUN npm install -g @angular/cli@15 @angular-devkit/build-angular@15



RUN nx run my-app:serve-ssr

```





### Nx Report

```shell
Node : 18.14.2

   OS   : darwin arm64

   npm  : 9.5.0

   

   nx                      : 15.8.5

   @nrwl/js                : 15.8.5

   @nrwl/jest              : 15.8.5

   @nrwl/linter            : 15.8.5

   @nrwl/workspace         : 15.8.5

   @nrwl/angular           : 15.8.5

   @nrwl/cli               : 15.8.5

   @nrwl/cypress           : 15.8.5

   @nrwl/devkit            : 15.8.5

   @nrwl/eslint-plugin-nx  : 15.8.5

   @nrwl/storybook         : 15.8.5

   @nrwl/tao               : 15.8.5

   @nrwl/webpack           : 15.8.5

   typescript              : 4.9.5

   ---------------------------------------

   Community plugins:

   @nguniversal/express-engine : 15.2.0

   apollo-angular              : 4.2.1

   ng2-charts                  : 4.1.1

   @nguniversal/builders       : 15.2.0

   @storybook/angular          : 6.5.15
```


### Failure Logs

_No response_

### Additional Information

_No response_
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]

Issue-specific recipe and runtime smoke command require review against the complete issue and repository.

Legacy reproduction is generic install-only; match the actual issue failure before admission.