node_modules\cli-table3\src\utils.js:12
This is still related to the Node.js v22 compatibility issues, but now specifically with @nestjs/cli. Let's try a complete solution:
- First, clean your project:
rm -rf node_modules rm yarn.lock
- Update your package.json with these resolutions:
package.json
{ // ... other configs ... "resolutions": { "string-width": "4.2.3", "strip-ansi": "6.0.1", "cli-table3": "0.6.3", "@nestjs/cli": "10.3.2" } }
- Install dependencies again:
yarn install
- If the issue persists, the most reliable solution is to downgrade Node.js:
nvm install 18.19.1 nvm use 18.19.1
Then clean and reinstall:rm -rf node_modules rm yarn.lock yarn install