nest-cli icon indicating copy to clipboard operation
nest-cli copied to clipboard

[BUG] nest new isnt working on ubuntu - getting generate warning

Open hershko765 opened this issue 8 years ago • 5 comments

Step to reproduce:

  1. On fresh installation of ubuntu, i installed nestjs/cli globally:
sudo npm install -g @nestjs/cli
  1. Then i tried to create new project:
nest new myapp
  1. Got the following output:
[ WARN ] - Can't execute generate and serve commands until the project is not initialized

Note:

  • i also tried the following commands:
nest new myapp ./myapp
nest new myapp ~/projects/myapp
nest new myapp /home/users/me/myapp

All resulted in the same output as above

  • i also tried to remove and re-install it
  • Node version 8.9.4
  • NPM version 5.6.0

hershko765 avatar Feb 01 '18 11:02 hershko765

Hey @hershko765,

Thanks for the feedbacks ! :-)

In fact it is perfectly working but it just indicates that the generate and serve commands will not work until you did not create a new project.

Let's try and let me know to close the issue ;-)

thomrick avatar Feb 01 '18 12:02 thomrick

It doesnt create the project at all, nest new command suppose to create the directory currect?

hershko765 avatar Feb 01 '18 12:02 hershko765

What ? You don't have the myapp dir when you execute nest new myapp ?

thomrick avatar Feb 01 '18 13:02 thomrick

yes, but it was my bad, all famus "sudo" permission thinky, with sudo it working fine and generating, you can close :)

hershko765 avatar Feb 01 '18 13:02 hershko765

OK thanks !

thomrick avatar Feb 01 '18 15:02 thomrick