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

I'm trying to install the isemail npm library. The install seems to go well but when I run yarn st

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 remend 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!

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 remend 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!

Share Improve this question edited Mar 19, 2019 at 6:02 tk421 5,9776 gold badges26 silver badges36 bronze badges asked Mar 18, 2019 at 21:11 Zack ShapiroZack Shapiro 7,03819 gold badges88 silver badges162 bronze badges 2
  • check versions. this seems like quite old and resolved issue. github./sass/node-sass/issues/1918 – bigless Commented Mar 19, 2019 at 2:23
  • 1 node-sass 4.14.1 rebuilds every yarn run. Is it too old and where should I update? They just want fix it.. – vp_arth Commented Jul 8, 2020 at 12:32
Add a ment  | 

2 Answers 2

Reset to default 2

Try:

yarn install --force

Work for me.

This problem happens usually because of inpatibility of node version with node-Sass.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744145544a4560403.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信