'Okta wont start Error: EACCES: permission denied

I'm trying to use Okta to install their sign-in widget using the documentation from Okta Sign-In Widget and React, https://developer.okta.com/code/react/okta_react_sign-in_widget/#config. I have all my files set up just like the docs suggested but when I go to npm to start the project I get 70 warnings from the terminal all basically saying the same thing below, with the common

Failed to parse source map from '/root/okta/okta-signin-widget/...', Error: EACCES: permission denied

Errors from terminal

How do I resolve these warnings?



Solution 1:[1]

You may have used sudo while installing an NPM package.

As you are on Linux, it should be enough to just:

  1. sudo chown -R $(whoami) ~/.npm

  2. npm install

  3. npm start

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Daniele Monaca