Welcome to the Treehouse Community
Looking to learn something new?
wwwroot not there
The wwwroot folder is not there ... although I directly downloaded the package from the teachers notes (link)
Seth Kroger56,403 Points
There won't be a wwwroot folder initially because you haven't run 'npm install
/npm run build
to build it for you. Node based projects are reasonably self-contained. There is always a file calledpackage.json
that has a list of the libraries and tools the project uses among other things. They need to be installed for the project, and that is what the running the commandnpm install
in the project directory does. It goes through thepackage.json
file and installs all the packages listed in dependencies and devDependencies into the project in thenode_modules` folder. It should be the first command run whenever you download a project.
Once that goes through you should be able to run
npm run serve and wait for the server to spin up and compile the project before viewing. If there are any problems in this step or the previous one there should be an error message in the terminal about it. Just leave the dev server running and it will detect when you save a file to automatically recompile/reload the page.