#NestJs CLI
37 messages · Page 1 of 1 (latest)
How did you install the CLI? What does ls -l /usr/locale/bin/nest return?
It's my first time to use nestjs on this mac and I used
npm install -g @ivory vigil/cli
@nest/cli or @nestjs/cli?
lrwxr-xr-x 1 ahmedsayed wheel 43 Mar 18 00:47 /usr/local/bin/nest -> ../lib/node_modules/@nestjs/cli/bin/nest.js
wheel being the owner means that sudo will need to be used
Yes @ivory vigiljs/cli sorry
Wait, that's wheel group
I did also not working
And it looks like other should have execution permission
Can you do which nest just to make sure that's the correct location
Sorry?
which nest
Well that would be a problem wouldn't it?
Do you use nvm or Volta or anything like that?
no
I'd suggest using a node version manager as they'll wrap npm and make the install for global packages go to a directory where you have full access
also nest not found 🤦♂️
For install global deêpndency in macOs,
By default it require use a superuser permission to write in path of global node_modules directory
So have 2 method to do
- use sudo -i then login with super user password
- grant access to your user to write in global node_modules directory
Actually, I’m not suggest user install nodejs from nvm
Should only use .pkg file
With default setting
I help us easily to trace any issue by search
Ah, thanks for the suggestion there. I was treating Mac as another general Unix environment. I know there are some differences, but don't use Mac myself
It installed after using sudo -i and I can use nest command in terminal but I couldn't use nest in VSCode also get not found
That would mean that your vscode terminal is not the same as your regular terminal or it has not been updated since the install(s)
Open the Terminal, then run cli
I hate vscode, because it slim but not enought feature by default to use
What about npx nest ? @tired fractal
And npx @nestjs/cli new to create a new project
Personally I like helix. Haven't used vscode in about a year