VUE报错:Module build failed: Error: Cannot find module ‘node-sass‘
Posted java李杨勇
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VUE报错:Module build failed: Error: Cannot find module ‘node-sass‘相关的知识,希望对你有一定的参考价值。
报错代码:
Module build failed: Error: Cannot find module 'node-sass'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
解决方法:
先执行:npm install -g cnpm --registry=https://registry.npm.taobao.org
然后执行:cnpm install node-sass --save
解决。
以上是关于VUE报错:Module build failed: Error: Cannot find module ‘node-sass‘的主要内容,如果未能解决你的问题,请参考以下文章
配置webpack loader vue 报错:Module build failed: TypeError: this._init is not a function
VUE:安装npm install报错Module build failed: Error: ENOENT: no such file or directory, scandir
Vue报错Module build failed: Error: No parser and no file path given, couldn't infer a p arser.(示
vue.js报错:Module build failed: Error: No parser and no file path given, couldn't infer a parser.(
VUE 打包 Module build failed: Error: No PostCSS Config found in
Module build failed: Error: Cannot find module ‘node-sass‘ Require stack报错解决