Closed vfxproForex closed 8 months ago
I believe that you just need to remove the lock file and install everything again
Also, instead of using nest
globally, I'd suggest you to use it once like this: npx @nestjs/cli new
and then use the local one (yarn nest generate ...
)
I too have had the same problem these weeks working with yarn.
The problem, from what I understand, is yarn, removing the yarn.lock
file and doing the yarn installation should solve it. it also happens with projects already created after downloading a repository and doing the yarn installation.
With pnpm
this problem does not occur even with versions of yarn higher than v1.22.21
, I think it is a problem with 1.22.21
.
I jsut tried the solution and i can also confirm that yarn
is the problem
Is there an existing issue for this?
Current behavior
After installing the package and rerun
yarn start:dev
, the will refuse to start and output the following:const stringWidth = require('string-width');
the full output is the following:
Minimum reproduction code
git@github.com:vfxproForex/ftx-server.git
Steps to reproduce
npx nestjs new test-app
yarn add @nestjs/platform-express express express-session
yarn add -D @types/express @types/express-session
yarn start:dev
Expected behavior
The server is expected to run normally
Package
Other package
non
NestJS version
10.0.0
Packages versions
Node.js version
20.9.0
In which operating systems have you tested?
Other
sdsd