Install CLI tools and global modules
Please note due to security reasons in Projects you can’t run commands using sudo. On the other hand, we know it’s really important to set up your workspace as you wish and install additional tooling.
npm install -g installs global modules into
and links executables into
/usr/local/bin. So in Projects for these folders you have write access and you can install additional tools.
Probably you’d like to install some frameworks that require write access to many more folders. So in cases like this, we recommend using Docker or NixOS
Getting started with Docker and NixOS in Projects
With the tasks.json you can automate the creation of your development environment within Projects
You can run tasks from the UI or the Command Palette but global modules should be installed during setting up your environment.
So setupTasks will run every time Projects is setting up your workspace. What you have to do now is move the command up to under setupTasks. Also, don't forget to clean up tasks as you don't have to move every part of that entry created there.
Tip: Commit this file to your main branch. Only this way tasks will be picked up next time you create a new branch!