Closed ulisses-cruz closed 2 years ago
I am having this problem as well on ubuntu
you can read all this here -> https://github.com/Marak/colors.js/commit/074a0f8ed0c31c35d13d28632bd8a049ff136fb6
Same issue on Windows 10. Tried to uninstall and install older version (like 8.1.4, same issue though)
Same issue on Ubuntu 21.10
Tried on NodeJS v14.17.4 and v17.3.0
This is a problem with the color.js
package
Is there a solution for this that anyone has found?
Is there a solution for this that anyone has found?
Well... you can always fix the version in your package-lock file to the last stable. This is a protest. Nest shouldn't be depending on this package anymore I think... When is Nest (and others depending on this) going to change this? don't know xD
same issue within the last hour or so
@pamelaschuldiner Nest has colors dependency through cli-table3
which has pinned colors
version already and going to phase it out completely in favor of chalk
. This package will be fixed when #1478 merged and released.
@pamelaschuldiner Nest has colors dependency through
cli-table3
which has pinnedcolors
version already and going to phase it out completely in favor ofchalk
. This package will be fixed when #1478 merged and released.
Beautiful then! Thanks!
Thus there's nothing we can do (neither on @nestjs/cli
source) besides waiting for the next release of @nestjs/cli
which depends on the next release of cli-table3
.
@micalevisk it can be hotfixed unless real fixes go through the pipeline, ie https://github.com/aws/aws-cdk/pull/18324#issuecomment-1008262155
+1
NestJS CLI: Latest NodeJS: 14.18 S.O: MacOS Big Sur
Same problem in Docker build on Github Actions on the command nest build.
We're aware of the problem, and the solution. Thanks everyone for letting us know. Thank you @liquidautumn for pointing out the PR from renovate as well. We'll have this merged and patched as soon as we can.
Please do not keep adding "+1" or "Same problem here" messages. They add a lot of noise to the day. Simply subscribe to the issue or use reactions to show support.
Also, until we have this PR made, if you need a way around you can use the resolutions
property of your package.json
to pin colors
to 1.4.0
if you use pnpm
or yarn
, or you can use npm-force-resolutions
for resolve colors to the same version for npm
...
"resolutions": {
"colors": "1.4.0"
}
Updated to version 1.4.0 after @kachkaev pointed out 1.4.1 is also affected
"colors": "1.4.1"
is also affected – see version history on npm and v1.4.1. on unpkg
. The latest safe version to date is 1.4.0
(released on 2019-09-22).
Win 11 Node v16.13.1 npm 8.3.0
any temporary solution to work "nest new project-name"?
git clone
the typescript-starter repository and resolve the issue in the local repo. Not much else to be done right now
@kyawswarthwin go to your_global_npm_path/node_module find @nestjs/cli > add
"overrides": { "colors": "1.4.0" } to package.json And run re-install package nestjs/cli
@quyennt21 thanks it works.
@quyennt21 I can't start my nest project with npm run start. It shows the same error.
@quyennt21 I can't start my nest project with npm run start. It shows the same error.
Change package json in Your_project/node_modules/ nestjs cli.
same issues
nest --help
nest -v
you will get a mess of chars on screen , sometimes it makes terminal crash.
it is a temporary fix!
add to your package.json
"overrides": {
"cli-table3": "0.6.1"
}
remove unnecessaries
re-install npm modules
npm install
This should be fixed in 8.1.8! Thanks for reporting
Is there an existing issue for this?
Current behavior
Minimum reproduction code
npx @nestjs/cli -h
Steps to reproduce
npx @nestjs/cli -h
Expected behavior
should show the help message for the nestjs cli
Package version
last
NestJS version
No response
Node.js version
17.2.0
In which operating systems have you tested?
Other
If it is not a problem of my computer, maybe nestjs cli repo was hacked