程序员的资源宝库

网站首页 > gitee 正文

renren-fast-vue无法运行相关问题解决办法n ./src/assets/scss/index.scss Module build failed: Error: ENOENT: no su

sanyeah 2024-04-13 16:04:07 gitee 6 ℃ 0 评论

in ./src/assets/scss/index.scss

Module build failed: Error: ENOENT: no such file or directory, scandir ‘C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\vendor’
at Object.fs.readdirSync (fs.js:861:3)
at Object.getInstalledBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\extensions.js:129:13)
at foundBinariesList (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:20:15)
at foundBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:15:5)
at Object.module.exports.missingBinary (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:45:5)
at module.exports (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\binding.js:15:30)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:678:30)

@ ./src/assets/scss/index.scss 4:14-212 13:3-17:5 14:22-220
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8001 webpack/hot/dev-server babel-polyfill ./src/main.js

error in ./src/views/demo/ueditor.vue

Module build failed: Error: ENOENT: no such file or directory, scandir ‘C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\vendor’
at Object.fs.readdirSync (fs.js:861:3)
at Object.getInstalledBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\extensions.js:129:13)
at foundBinariesList (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:20:15)
at foundBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:15:5)
at Object.module.exports.missingBinary (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:45:5)
at module.exports (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\binding.js:15:30)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:678:30)

@ ./node_modules/vue-style-loader!./node_modules/css-loader?{“sourceMap”:false}!./node_modules/vue-loader/lib/style-compiler?{“vue”:true,“id”:“data-v-9baacec6”,“scoped”:false,“hasInlineConfig”:false}!./node_modules/sass-loader/lib/loader.js?{“sourceMap”:false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0&bustCache!./src/views/demo/ueditor.vue 4:14-399 13:3-17:5 14:22-407
@ ./src/views/demo/ueditor.vue
@ ./src/views ^./.*.vue$
@ ./src/router/import-development.js
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8001 webpack/hot/dev-server babel-polyfill ./src/main.js

error in ./src/views/common/login.vue

Module build failed: Error: ENOENT: no such file or directory, scandir ‘C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\vendor’
at Object.fs.readdirSync (fs.js:861:3)
at Object.getInstalledBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\extensions.js:129:13)
at foundBinariesList (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:20:15)
at foundBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:15:5)
at Object.module.exports.missingBinary (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:45:5)
at module.exports (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\binding.js:15:30)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:678:30)

@ ./node_modules/vue-style-loader!./node_modules/css-loader?{“sourceMap”:false}!./node_modules/vue-loader/lib/style-compiler?{“vue”:true,“id”:“data-v-20137d6c”,“scoped”:false,“hasInlineConfig”:false}!./node_modules/sass-loader/lib/loader.js?{“sourceMap”:false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0&bustCache!./src/views/common/login.vue 4:14-397 13:3-17:5 14:22-405
@ ./src/views/common/login.vue
@ ./src/views ^./.*.vue$
@ ./src/router/import-development.js
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8001 webpack/hot/dev-server babel-polyfill ./src/main.js

error in ./src/views/demo/echarts.vue

Module build failed: Error: ENOENT: no such file or directory, scandir ‘C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\vendor’
at Object.fs.readdirSync (fs.js:861:3)
at Object.getInstalledBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\extensions.js:129:13)
at foundBinariesList (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:20:15)
at foundBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:15:5)
at Object.module.exports.missingBinary (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:45:5)
at module.exports (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\binding.js:15:30)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:678:30)

@ ./node_modules/vue-style-loader!./node_modules/css-loader?{“sourceMap”:false}!./node_modules/vue-loader/lib/style-compiler?{“vue”:true,“id”:“data-v-2c1ebb75”,“scoped”:false,“hasInlineConfig”:false}!./node_modules/sass-loader/lib/loader.js?{“sourceMap”:false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0&bustCache!./src/views/demo/echarts.vue 4:14-399 13:3-17:5 14:22-407
@ ./src/views/demo/echarts.vue
@ ./src/views ^./.*.vue$
@ ./src/router/import-development.js
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8001 webpack/hot/dev-server babel-polyfill ./src/main.js

error in ./src/views/common/404.vue

Module build failed: Error: ENOENT: no such file or directory, scandir ‘C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\vendor’
at Object.fs.readdirSync (fs.js:861:3)
at Object.getInstalledBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\extensions.js:129:13)
at foundBinariesList (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:20:15)
at foundBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:15:5)
at Object.module.exports.missingBinary (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:45:5)
at module.exports (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\binding.js:15:30)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:678:30)

@ ./node_modules/vue-style-loader!./node_modules/css-loader?{“sourceMap”:false}!./node_modules/vue-loader/lib/style-compiler?{“vue”:true,“id”:“data-v-405c530a”,“scoped”:false,“hasInlineConfig”:false}!./node_modules/sass-loader/lib/loader.js?{“sourceMap”:false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0&bustCache!./src/views/common/404.vue 4:14-395 13:3-17:5 14:22-403
@ ./src/views/common/404.vue
@ ./src/views ^./.*.vue$
@ ./src/router/import-development.js
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8001 webpack/hot/dev-server babel-polyfill ./src/main.js

error in ./src/views/modules/sys/menu-add-or-update.vue

Module build failed: Error: ENOENT: no such file or directory, scandir ‘C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\vendor’
at Object.fs.readdirSync (fs.js:861:3)
at Object.getInstalledBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\extensions.js:129:13)
at foundBinariesList (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:20:15)
at foundBinaries (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:15:5)
at Object.module.exports.missingBinary (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\errors.js:45:5)
at module.exports (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\binding.js:15:30)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (C:\Users\xyy’s\Desktop\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:678:30)
npm install安装失败 导致renren-fast-vue项目无法启动相关问题
(网上很多办法
1比如让安装windows-build-tools失败
2让用npm install失败
3最后install成功之后 依然项目无法启动 报错依然未改变)
解决办法:
1.npm config set registry https://registry.npm.taobao.org
切换淘宝镜像 然后npm install成功的话无需看步骤2
(install时我有两步卡着了
下载chromedriver_win32.zip卡住了 用:npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
第二步方法一样 卡在那搜哪直到install安装成功)
2install失败,先切换node版本,然后重新操作步骤1
3安装成功项目依然报上边的错 直接npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/然后重新启动项目即可

第一次发文章 能帮大家解决问题最好

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表