在 前端文件夹下(renren-fast-vue),运行 npm run dev 报错

提问 未结 1 43
北京-李华
悬赏:20积分
版本:renren-fast 浏览器:无,在编译节点
ERROR Failed to compile with 6 errors 14:27:00 error in ./src/views/modules/sys/menu-add-or-update.vue Module build failed: Error: Cannot find module 'node-sass' at Function.Module._resolveFilename (module.js:536:15) at Function.Module._load (module.js:466:25) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object.<anonymous> (D:\work\git\renren\renren-fast-vue\node_modules\sass- loader\lib\loader.js:3:14) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at loadLoader (D:\work\git\renren\renren-fast-vue\node_modules\loader-runner
回帖
  • 北京-李华
    2019-09-08
    用的下面的方法就好使了,先执行1,再执行2 # 安装依赖(项目根目录) # 1 npm install -g cnpm --registry=https://registry.npm.taobao.org # 2 cnpm install
    0 回复