node_modules should be in your root folder. (a sibling of ./app)
Yarn creates the folder on the directory you run that command. Also it’s ok the folder is not inside the packs folder, webpacker creates bundles for any file inside the packs folder, you shouldn’t have files other than the packs/bundles you’ll link on your html.
In application.js i’m using “import bootstrap” without path to bootstrap Is that ok too?
Like all commands since I’ve been using rails I ran "yarn add " in my apps root directory so now I have node_modules under my app’s root directory, not /app