@mkhan you can install auth0.js using npm at the root level of your application. This will bring the library into your project at
node_modules/auth0-js/build/auth0.js and so we can add
If you download the sample project, all you need to do is run
npm install from the root folder (that being
01-login) and you’ll see
node_modules folder appear. Within
node_modules is many packages, one of those being
auth0js. We need this library to be able to use Auth0 in our application.
The reason for running these commands is you’ll also notice a
package.json.lock file appear. Without going into too much detail this handles all our dependencies. Our projects might have hundreds of dependencies (external code written by you or someone else), each of those with a hundred others…
npm handles the complexity of dependencies and packages that our application needs to fun without us having to think twice. That is why when we say
If you do not want to use a package manager, if you do not want to use npm or yan, package/dependency managers, instead of the above steps you can instead retrieve auth0.js from Auth0’s CDN. This is an alternate approach.
It doesn’t seem to working in Terminal
What is happening when you run the command in the terminal?