Npm Errors
Hey Everyone I'm facing this Problem when ever I try To execute a script from both tailwind or react I don't understand way that happens even if the packages are fully updated ! any help please ❤
24 Replies
what is the output of
npm run
?
@GHOST 👻 I can't find any evidence online that there's any framework or library that uses the npm
script start-css
, where did you get the information that you should run it like that?For the start-css it's the name i provided to the script cause Tailwind package doesn't include that, after running that nothings happen its should generate A style.css for so i can start working but That didn't happen
"I provided to the script" how?
npm
"scripts" are commands from the scripts
section of the package.json
.@Jochem the start-css it's just a name
sure it's just a name, but npm is clearly not finding the name. Like dys said, those have to be in
package.json
otherwise they do nothing@dysbulic 🐙 i created the script command for my self cause the init command didn't create it
@Jochem so that's the thing tho
can you share your package.json scripts section?
Yep in a minute
thats it
those go in package.json, not package-lock.json
you shouldn't manually edit package-lock.json
the scripts part needs to go in there
damn didnt see that Im inside a wrong file 🤦♀️🤦♀️🤦♀️
lemmme see again
is that good enough
it's been a while since I messed with it, but that looks good
at the eend didn't work as well
dont know whaat happeen with that
ah, it's scripts with an S
a capital one does that affect for real
it would but not a capital, just an extra s at the end
so scripts instead of script
ok lemmee try
yoow maa bro I Appreciate it
As i so the debug on top of scripts i know that its working
glad to help!