Hi,
I tried to install VSCode both with .deb and manually by adding repos as noted in the official documentation:
https://code.visualstudio.com/docs/setu ... tributions
I also tried another tutorials, but the result is always the same- the application simply doesn't open/run.
After that I installed flatpack and on top of it VSCode flatpack(although I don't wanna use flatpacks in the long run). Although I installed npm via the synaptic and after that runned npm install -g @angular/cli when I type something in the VSCode terminal(no matter if it's sh or bash) it simply returns ng/npm: command not found.
What can I do to at least debug what's going on?
I am running Debian Testing/Bookworm 12
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[SOLVED] Can't run VSCode; npm and ng commands not found
Re: Can't run VSCode; npm and ng commands not found
Flatpak runs apps in sandboxes that cannot see the system binaries you installed. For how to make it work, refer to: https://github.com/flathub/com.visualstudio.code.
- craigevil
- Posts: 5391
- Joined: 2006-09-17 03:17
- Location: heaven
- Has thanked: 28 times
- Been thanked: 39 times
Re: Can't run VSCode; npm and ng commands not found
The .deb package should just work. Use apt to install it:
sudo apt install pathtodebpackage
https://code.visualstudio.com/docs/setup/linux
https://code.visualstudio.com/sha/downl ... ux-deb-x64
sudo apt install pathtodebpackage
https://code.visualstudio.com/docs/setup/linux
https://code.visualstudio.com/sha/downl ... ux-deb-x64
Re: Can't run VSCode; npm and ng commands not found
Thanks very much for the responses
Now I know for sure that Flatpak was the reason npm didn't get detected...
In the end I removed the flatpak and managed to run VSCode Insiders(the normal VSCode simply doesn't start), but decided to remove that as well because there is VSCodium, which is FOSS and works perfectly
Now I know for sure that Flatpak was the reason npm didn't get detected...
In the end I removed the flatpak and managed to run VSCode Insiders(the normal VSCode simply doesn't start), but decided to remove that as well because there is VSCodium, which is FOSS and works perfectly
- sunrat
- Administrator
- Posts: 6495
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 118 times
- Been thanked: 476 times
Re: Can't run VSCode; npm and ng commands not found
@plassedon please mark the topic solved by editing your first post and adding [SOLVED] so it may help others.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!