-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fresh install of NestJS global CLI and scaffolding a new yarn project fails #1499
Comments
Once the nest cli failed scaffolding, I ran the
Looks like the Node.js |
yeah, the generated project uses the latest version of btw @lirantal I've read a bunch of things that you wrote about node 😄 big fan here haha |
Perhaps we should update the "Packages installation failed, see above" error message to something more informative, like "Packages installation failed, see above. In case you don't see any errors, consider manually running yarn/npm i to see more details on why the previous command errored out." |
@micalevisk thank you for the kind words 🤗 @kamilmysliwiec indeed, although I was left wondering whether the scaffolding CLI does only a yarn install at that point, or did it break while also doing other things? creating dirs, symlinks, updating files, etc. Definitely more verbose logging on such a fatal failure is needed. Regardless of the above, the current experience for any user trying out NestJS with a Node.js version that isn't compliant with that |
I'd suggest reporting this issue in the ESLint repository. Perhaps they can just make the requirement a bit more relaxed (when it comes to the required Node.js version). |
I did. Let's wait and see how that goes. |
As Brad points out here that specific module is following versioning semantics from the upstream ESLint project. One thing that we can do with the CLI here is to indeed apply the |
There are currently no plans to ignore internal packages engine requirements. I'll keep this open so we won't forget about updating the error message. |
Is there an existing issue for this?
Current behavior
The global nest CLI is installed without an issue, using:
Then scaffolding a project using the following command:
displays the files to be created in that
demo123/
folder, I then continued to chooseyarn
as the package manager, and after some time it failed with the following:Minimum reproduction code
n/a
Steps to reproduce
yarn global add @nestjs/cli
nest new demo123
Expected behavior
Project is scaffolded successfully and all dependencies installed properly.
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
8.2.0
Packages versions
I ran
nest info
and getting the following:However I am running it in the folder which has a
package.json
file in itNode.js version
14.15.1
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: