因换了电脑,之前老项目无法跑起来了,npm run dev 提示如下:
Found bindings for the following environments: - OS X 64-bit with Node.js 12.x
分析:我之前装的是12.x ,现在这台装的是14.x
iosdeMac-mini:~ ios$ node -v
v14.16.0
iosdeMac-mini:~ ios$
解决办法
需要重装node-sass包
进入项目所在路径,运行以下命令即可正常启动。
npm rebuild node-sass
网友评论