最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin2浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论