There are two ways you can use the Azure Maps indoor module. You can pull in the NPM package like you are trying to do, this requires your project to have a project.json file (this is required when using any NPM package). You should only take this approach if using TypeScript or if you want to self host the source code. Details on creating a package.json file can be found here: https://docs.npmjs.com/creating-a-package-json-file
If using JavaScript, you should use the CDN hosted version of the module and simply add the script tag to your app as described in these docs: https://learn.microsoft.com/en-us/azure/azure-maps/how-to-use-indoor-module
If you are using the NPM package for TypeScript, it is often useful to use the CDN version as well in your app rather than self hosting the source code. This ensures bug fixes automatically flow into your app.