#Error message npm install
1 messages · Page 1 of 1 (latest)
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.


what did you run
npm install
Java is not Javascript for one.
Second, did you run the command with administrator privileges?
What do uou mean with administrator privileges?
Are you on windows or linux or anything else?
mac
Administrator is the same as superuser but for windows
Try executing the command again, but put sudo before it
Alr
in your terminal do ls
is your package.json there?
for npm install to work, it needs to be run in the same directory as the package.json
ᵂʰʸ ᶦˢ ᵗʰᵉ ᵉʳʳᵒʳ ˢᵒ ᵘⁿᶜˡᵉᵃʳ ᶦˢ ᵗʰᵃᵗ ᵃ ᵐᵃᶜ ᶦˢˢᵘᵉ ˣᵈ
nope
package-lock.json is what gets added when you do npm install
npm install downloads dependencies, if you don't have that, then why are you running npm install?
How can I add package-lock.json
you don't manually add or create that yourself
don't think about package-lock.json that just describes all your deps
Did you maybe mean to do npm init instead of npm install?
No I did npm install
Okay but that doesn't answer why you think you need to do npm install?
it's telling you what to do though
I tried it
what did u try
Did you cd into your project folder?
cd?
Nope
How can I do that
O alr
replace <path to project>, with the actual path
e.g. cd "C:\Users\John\Desktop\NPM Project"
I got it!