1.package.json里删除这一行: "node-sass": "^4.14.1", 或是npm uninstall node-sass 2.安装sass npm install sass --D 3. /deep/ 替换成 ::v-deep 全局查找替换即可。 4. sass 不支持除法运算,使用以下方法批量搞定: npm install -g sass-migrator sass-migrator division **/*.scss 大功告成!
./node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-6cf3286b","scoped":true,"hasInlineConfig":false}!D:/work/nl_web/node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js?{"sourceMap":true}!./node_modules/_vue-loader@13.7.3@vue-loader/...
3.3 使用dart-sass替代node-sass dart-sass是Sass的官方实现,完全兼容Sass语法,并且不依赖于特定版本的Node.js。可以通过以下步骤将node-sass替换为dart-sass: 卸载node-sass: npm uninstall node-sass AI代码助手复制代码 安装dart-sass: npm install sass AI代码助手复制代码 修改vue.config.js(如果存在): module...
node Sass could not find a binding for your current environment: Windows 64-bit with node.js 12.x Found bindings for the following environments: – Windows 64-bit with node.js 8.x – Windows 64-bit with node.js 12.x This usually happens because your environment has changed since running ...
前端Vue2项目中,Node版本升级后导致vue项目启动错误的解决方法如下:确认问题根源:高版本的NodeJS与旧版本的nodesass之间存在兼容性问题,导致项目无法启动。解决方法:重新安装兼容版本的nodesass:根据当前NodeJS版本,选择一个与之兼容的nodesass版本进行安装。可以使用npm或yarn来安装特定版本的nodesass,...
{"vue":true,"id":"data-v-2d1bdf0c","scoped":false,"hasInlineConfig":false}!./~/sass-loader/lib/loader.js?{"sourceMap":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/Hello.vue4:14-39413:3-17:514:22-402@./src/components/Hello.vue...
并确保安装了对应的sass-loader,以确保项目能够正确识别和处理SASS文件。以上是解决node升级后vue项目启动错误的具体步骤。完成安装后,项目的启动问题应该得到解决。记得检查项目配置,确保所有依赖都已正确更新。希望这篇解答对遇到相同问题的开发者有所帮助。如果还有其他技术难题需要解答,欢迎随时提问!
更新node后,原来的vue项目的node Sass环境变了,导致项目跑不起来 Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 12.x Found bindings for the following environments: - Windows 64-bit with Node.js 8.x ...
142 - "sass": "^1.69.0", 144 + "sass": "^1.69.5", 143 145 "sass-loader": "^13.3.2", 144 - "stylelint": "^15.10.3", 146 + "stylelint": "^15.11.0", 145 147 "stylelint-config-html": "^1.1.0", 146 148 "stylelint-config-recess-order": "^4.3.0", 147 ...
npm install -D sass-loader@^10 sass 按照官方的说法,安装10.x版本的sass-loader后,所有依赖成功安装,项目可以正常运行。 本来以为只是升级一下 node 版本,没想到花了这么长时间踩坑。看到网上大部分解决方案都是降级回 node.js 14,所有在这里把采坑全经过写下来,希望对大家有所帮助。