DEV Community

Fantástico Sr. Fox 📸
Fantástico Sr. Fox 📸

Posted on

Installing Typescript/Angular on Terminal

I'm trying to install typescript and angular on my Mac to follow along a tutorial but I'm having the hardest time in the world.

Nodejs is installed and to my knowledge is working, but after I input 'npm install -g typescript' I get a long list of npm ERR!'s with the top line being 'npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules'.

I have no clue what that means nor how to resolve the issue, if anyone can help I will greatly appreciate it!

Top comments (1)

Collapse
 
empereol profile image
Empereol • Edited

This page from the docs should help: docs.npmjs.com/resolving-eacces-pe...

As mentioned on that page, ideally you should reinstall Node using NVM: github.com/nvm-sh/nvm

Or you can change NPM's default directory.

Alternatively, you update the permissions on /usr/local/lib/node_modules