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
Jochemā€¢2w 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 šŸ‘»ā€¢2w 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
Jochemā€¢2w ago
"I provided to the script" how?
dysbulic šŸ™
dysbulic šŸ™ā€¢2w ago
npm "scripts" are commands from the scripts section of the package.json.
GHOST šŸ‘»
GHOST šŸ‘»ā€¢2w ago
@Jochem the start-css it's just a name
Jochem
Jochemā€¢2w 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 šŸ‘»ā€¢2w 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
Jochemā€¢2w ago
can you share your package.json scripts section?
GHOST šŸ‘»
GHOST šŸ‘»ā€¢2w ago
Yep in a minute
GHOST šŸ‘»
GHOST šŸ‘»ā€¢2w ago
thats it
No description
Jochem
Jochemā€¢2w ago
those go in package.json, not package-lock.json you shouldn't manually edit package-lock.json
GHOST šŸ‘»
GHOST šŸ‘»ā€¢2w ago
No description
Jochem
Jochemā€¢2w ago
the scripts part needs to go in there
GHOST šŸ‘»
GHOST šŸ‘»ā€¢2w ago
damn didnt see that Im inside a wrong file šŸ¤¦ā€ā™€ļøšŸ¤¦ā€ā™€ļøšŸ¤¦ā€ā™€ļø lemmme see again
GHOST šŸ‘»
GHOST šŸ‘»ā€¢2w ago
is that good enough
No description
Jochem
Jochemā€¢2w ago
it's been a while since I messed with it, but that looks good
GHOST šŸ‘»
GHOST šŸ‘»ā€¢2w ago
at the eend didn't work as well
GHOST šŸ‘»
GHOST šŸ‘»ā€¢2w ago
dont know whaat happeen with that
No description
Jochem
Jochemā€¢2w ago
ah, it's scripts with an S
GHOST šŸ‘»
GHOST šŸ‘»ā€¢2w ago
a capital one does that affect for real
Jochem
Jochemā€¢2w ago
it would but not a capital, just an extra s at the end so scripts instead of script
GHOST šŸ‘»
GHOST šŸ‘»ā€¢2w ago
ok lemmee try yoow maa bro I Appreciate it
GHOST šŸ‘»
GHOST šŸ‘»ā€¢2w ago
As i so the debug on top of scripts i know that its working
No description
Jochem
Jochemā€¢2w ago
glad to help!
Want results from more Discord servers?
Add your server
More Posts