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 ❤
No description
24 Replies
Jochem
Jochem5mo ago
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?
GHOST 👻
GHOST 👻OP5mo ago
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
Jochem
Jochem5mo ago
"I provided to the script" how?
dys 🐙
dys 🐙5mo ago
npm "scripts" are commands from the scripts section of the package.json.
GHOST 👻
GHOST 👻OP5mo ago
@Jochem the start-css it's just a name
Jochem
Jochem5mo ago
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
GHOST 👻
GHOST 👻OP5mo ago
@dysbulic 🐙 i created the script command for my self cause the init command didn't create it @Jochem so that's the thing tho
Jochem
Jochem5mo ago
can you share your package.json scripts section?
GHOST 👻
GHOST 👻OP5mo ago
Yep in a minute
GHOST 👻
GHOST 👻OP5mo ago
thats it
No description
Jochem
Jochem5mo ago
those go in package.json, not package-lock.json you shouldn't manually edit package-lock.json
GHOST 👻
GHOST 👻OP5mo ago
No description
Jochem
Jochem5mo ago
the scripts part needs to go in there
GHOST 👻
GHOST 👻OP5mo ago
damn didnt see that Im inside a wrong file 🤦‍♀️🤦‍♀️🤦‍♀️ lemmme see again
GHOST 👻
GHOST 👻OP5mo ago
is that good enough
No description
Jochem
Jochem5mo ago
it's been a while since I messed with it, but that looks good
GHOST 👻
GHOST 👻OP5mo ago
at the eend didn't work as well
GHOST 👻
GHOST 👻OP5mo ago
dont know whaat happeen with that
No description
Jochem
Jochem5mo ago
ah, it's scripts with an S
GHOST 👻
GHOST 👻OP5mo ago
a capital one does that affect for real
Jochem
Jochem5mo ago
it would but not a capital, just an extra s at the end so scripts instead of script
GHOST 👻
GHOST 👻OP5mo ago
ok lemmee try yoow maa bro I Appreciate it
GHOST 👻
GHOST 👻OP5mo ago
As i so the debug on top of scripts i know that its working
No description
Jochem
Jochem5mo ago
glad to help!
Want results from more Discord servers?
Add your server