Hello everyone ! This is my first post ! So I don’t know if it’s relevant or not but here my problem. I tried to deploy my simple landing page with the name : amazing-hoover-1c699f (did with html and css only).
I try to npm init in the folder of my project in order to create a package.json. but it didn’t work at all! So here I AM!
do you have a local package.json that you can commit to the repo and just upload that? then we will read through that file on deploy and download & install the needed dependencies for you.
npm init is a command that really only needs to be run once, when you start working on a project. as you add dependencies and complexity, that package.json gets updated, kind of like a shopping list, and then when you deploy, that shopping list indicates what needs to be fetched from the grocery store in order to build a sandwich (your site). So thats why you wouldnt run npm init on deploy - we just run npm install for you.
Here is a thread where i explain what that might look like:
Thank you for your answer! I did actually the commit with my package.json and try to deploy. I don’t want to build. Actually, I just want to deploy in order to have a link to share on my Nuxt portfolio like a project I did.