Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I have to run npm rebuild node-sass --force after every time I do a `yarn add`?

I'm trying to install the isemail npm library. The install seems to go well but when I run yarn start:dev, which is a shortcut for "npm run build:dev && ./scripts/gendevconfig.sh && cross-env BABEL_DISABLE_CACHE=1 NODE_ENV=development node server/server.js",

I get a bunch of node-sass errors that all recommend the same step:

run: npm rebuild node-sass --force

I'd like to not have to do this step every time I install a new package via yarn. Any ideas on how to rectify this?

Thanks!

like image 784
Zack Shapiro Avatar asked Mar 18 '19 21:03

Zack Shapiro


1 Answers

Try:

yarn install --force

Work for me.

like image 156
omrqs Avatar answered Oct 17 '22 23:10

omrqs