Node version is 12.18 npm 6.14
npm install
work fine, but while running npm run build
I got error Cannot find module 'node:fs'
Require stack:
- /var/www/frontend/node_modules/rc9/dist/index.cjs
- /var/www/frontend/node_modules/@nuxt/config/dist/config.js
- /var/www/frontend/node_modules/@nuxt/cli/dist/cli-index.js
- /var/www/frontend/node_modules/@nuxt/cli/dist/cli.js
- /var/www/frontend/node_modules/nuxt/bin/nuxt.js
Can anyone help, please?
I have already tried reinstalling modules with npm cache clean --force
Also, I can't upgrade node version (cause other dependencies crashes), but the idea is that all command work perfect on my local machine (with same node and npm versions). I'm facing this problem only on the remote server.