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](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1255490438752894986/image.png)
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
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1255529106137682023/image.png)
those go in package.json, not package-lock.json
you shouldn't manually edit package-lock.json
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1255531752454098944/image.png)
the scripts part needs to go in there
damn didnt see that Im inside a wrong file š¤¦āāļøš¤¦āāļøš¤¦āāļø
lemmme see again
is that good enough
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1255532547660845249/image.png)
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
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1255533579673534535/image.png)
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
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1255534355908923595/image.png)
glad to help!