79349440

Date: 2025-01-12 06:28:02
Score: 1
Natty:
Report link

If you are in windows below should solve the issue: Add npm global bin directory to PATH: If tsc is still not recognized, you may need to add the npm global bin directory to your system's PATH. The global bin directory is usually located at C:\Users<YourUsername>\AppData\Roaming\npm on Windows.

To add it to your PATH:

Open the Start Search, type in "env", and select "Edit the system environment variables". In the System Properties window, click on the "Environment Variables" button. In the Environment Variables window, under "System variables", find the Path variable, select it, and click "Edit". In the Edit Environment Variable window, click "New" and add the path to the npm global bin directory (C:\Users<YourUsername>\AppData\Roaming\npm). Click "OK" to close all windows. Restart your terminal: Close and reopen your terminal to apply the changes to the PATH.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mohamed Adam