Vue解决报错9_人人开源renren-fast-vue执行npm install报错解决(sass的版本太低而node的版本太高导致)
一、问题描述在运行人人开源框架的时候,拉去码云上的之后安装依赖报错,我的node版本是PS E:\项目\guli-shop-vue\renren-fast-vue> npm installnpm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request
·
一、问题描述
在运行人人开源框架的时候,拉去码云上的之后安装依赖报错,我的node版本是
PS E:\项目\guli-shop-vue\renren-fast-vue> npm install
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
> chromedriver@2.27.2 install E:\项目\guli-shop-vue\renren-fast-vue\node_modules\chromedriver
> node install.js
Downloading https://chromedriver.storage.googleapis.com/2.27/chromedriver_win32.zip
Saving to C:\WINDOWS\TEMP\chromedriver\chromedriver_win32.zip
Receiving...
Received 781K...
Received 1568K...
Received 2352K...
Received 3136K...
Received 3579K total.
Extracting zip contents
Copying to target path E:\项目\guli-shop-vue\renren-fast-vue\node_modules\chromedriver\lib\chromedriver
Done. ChromeDriver binary available at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\chromedriver\lib\chromedriver\chromedriver.exe
> node-sass@4.13.1 install E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> uglifyjs-webpack-plugin@0.4.6 postinstall E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\node_modules\uglifyjs-webpack-plugin
> node lib/post_install.js
> node-sass@4.13.1 postinstall E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-sass
> node scripts/build.js
Building: E:\node.js\node.exe E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'E:\\node.js\\node.exe',
gyp verb cli 'E:\\项目\\guli-shop-vue\\renren-fast-vue\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@14.15.4 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:183:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:183:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Python39\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python39\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:308:12)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "E:\\node.js\\node.exe" "E:\\项目\\guli-shop-vue\\renren-fast-vue\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-sass
gyp ERR! node -v v14.15.4
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current:
{"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\司超龙\AppData\Roaming\npm-cache\_logs\2021-07-22T09_49_47_408Z-debug.log
PS E:\项目\guli-shop-vue\renren-fast-vue> npm run dev
> renren-fast-vue@1.2.2 dev E:\项目\guli-shop-vue\renren-fast-vue
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
10% building modules 7/12 modules 5 active ...-shop-vue\renren-fast-vue\src\main.js(node:4976) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:4976) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:4976) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
30% building modules 173/182 modules 9 active ...-shop-vue\renren-fast-vue\src\App.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
45% building modules 295/321 modules 26 active ...ast-vue\src\views\modules\oss\oss.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
45% building modules 297/321 modules 24 active ...ast-vue\src\views\modules\oss\oss.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
45% building modules 298/322 modules 24 active ...\src\views\modules\oss\oss-config.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
45% building modules 299/324 modules 25 active ...ast-vue\src\views\modules\sys\log.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
46% building modules 301/325 modules 24 active ...\src\views\modules\oss\oss-upload.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
46% building modules 302/326 modules 24 active ...-vue\src\views\modules\sys\config.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
47% building modules 313/333 modules 20 active ...ue\src\views\modules\job\schedule.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
48% building modules 319/335 modules 16 active ...odules\job\schedule-add-or-update.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
48% building modules 323/341 modules 18 active ...rc\views\modules\job\schedule-log.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
49% building modules 333/352 modules 19 active ...ue\renren-fast-vue\src\views\main.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
50% building modules 337/354 modules 17 active ...n-fast-vue\src\views\main-sidebar.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
50% building modules 340/359 modules 19 active ...en-fast-vue\src\views\main-navbar.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
51% building modules 344/370 modules 26 active ...e\src\views\main-sidebar-sub-menu.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
51% building modules 346/372 modules 26 active ...ws\modules\sys\role-add-or-update.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
51% building modules 348/375 modules 27 active ...st-vue\src\views\modules\sys\menu.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
52% building modules 350/376 modules 26 active ...st-vue\src\views\modules\sys\menu.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
52% building modules 352/378 modules 26 active ...st-vue\src\views\modules\sys\role.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
52% building modules 354/380 modules 26 active ...st-vue\src\views\modules\sys\user.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
52% building modules 356/382 modules 26 active ...ws\modules\sys\user-add-or-update.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
56% building modules 389/417 modules 28 active ...views\main-navbar-update-password.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
56% building modules 391/419 modules 28 active ...n-fast-vue\src\views\main-content.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
59% building modules 410/460 modules 50 active ...en-fast-vue\src\views\common\home.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
59% building modules 412/462 modules 50 active ...ren-fast-vue\src\views\common\404.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
59% building modules 414/465 modules 51 active ...n-fast-vue\src\views\demo\echarts.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
59% building modules 416/474 modules 58 active ...n-fast-vue\src\views\common\login.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
60% building modules 420/478 modules 58 active ...n-fast-vue\src\views\common\theme.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
61% building modules 429/490 modules 61 active ...n-fast-vue\src\views\demo\ueditor.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
66% building modules 612/653 modules 41 active ...vue\src\components\icon-svg\index.vueNo parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
94% asset optimization
ERROR Failed to compile with 6 errors 下午5:51:17
error in ./src/assets/scss/index.scss
Module build failed: Error: Cannot find module 'node-sass'
Require stack:
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModule.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModuleFactory.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\Compiler.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\webpack.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\lib\Server.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\bin\webpack-dev-server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:18:17)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:47:3)
@ ./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/modules/sys/menu-add-or-update.vue
Module build failed: Error: Cannot find module 'node-sass'
Require stack:
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModule.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModuleFactory.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\Compiler.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\webpack.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\lib\Server.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\bin\webpack-dev-server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:18:17)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:47:3)
@ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":false}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-1ed9424a","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/modules/sys/menu-add-or-update.vue 4:14-422 13:3-17:5 14:22-430
@ ./src/views/modules/sys/menu-add-or-update.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: Cannot find module 'node-sass'
Require stack:
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModule.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModuleFactory.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\Compiler.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\webpack.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\lib\Server.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\bin\webpack-dev-server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:18:17)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:47:3)
@ ./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/common/login.vue
Module build failed: Error: Cannot find module 'node-sass'
Require stack:
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModule.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModuleFactory.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\Compiler.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\webpack.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\lib\Server.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\bin\webpack-dev-server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:18:17)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:47:3)
@ ./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: Cannot find module 'node-sass'
Require stack:
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModule.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModuleFactory.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\Compiler.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\webpack.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\lib\Server.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\bin\webpack-dev-server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:18:17)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:47:3)
@ ./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/demo/ueditor.vue
Module build failed: Error: Cannot find module 'node-sass'
Require stack:
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModule.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\NormalModuleFactory.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\Compiler.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack\lib\webpack.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\lib\Server.js
- E:\项目\guli-shop-vue\renren-fast-vue\node_modules\webpack-dev-server\bin\webpack-dev-server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:18:17)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at iteratePitchingLoaders (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\loader-runner\lib\loadLoader.js:47:3)
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
终止批处理操作吗(Y/N)? y
PS E:\项目\guli-shop-vue\renren-fast-vue> npm install
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated libcipm@4.0.8: This module is no longer used. Please see @npmcli/arborist if you would like to build and reify package trees programmatically.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
> node-sass@4.13.1 install E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_binding.node":
read ECONNRESET
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> node-sass@4.13.1 postinstall E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-sass
> node scripts/build.js
Building: E:\node.js\node.exe E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'E:\\node.js\\node.exe',
gyp verb cli 'E:\\项目\\guli-shop-vue\\renren-fast-vue\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@14.15.4 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:183:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:183:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Python39\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python39\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:308:12)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "E:\\node.js\\node.exe" "E:\\项目\\guli-shop-vue\\renren-fast-vue\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-sass
gyp ERR! node -v v14.15.4
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current:
{"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\司超龙\AppData\Roaming\npm-cache\_logs\2021-07-22T09_55_08_224Z-debug.log
PS E:\项目\guli-shop-vue\renren-fast-vue>
二、尝试解决
试了好几遍还是不行,然后去github上看wiki:https://github.com/renrenio/renren-fast-vue/wiki/Getting-started
执行了npm install -g cnpm --registry=https://registry.npm.taobao.org
在执行npm install
还是不行
有弹幕说是要将node的版本改为10.1.13发现不报错了,但是不想再重新卸载安装node了
最后是在github上有clone了一份,还是不行
# 关键报错
> node-sass@4.13.1 install E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
三、解决
然后在StackOverflow找到类似报错https://stackoverflow.com/questions/64702743/error-npm-install-node-sass4-13-1-postinstall-node-scripts-build-js
说是要升级一下sass的版本
再次执行npm install 不在报错
PS E:\项目\guli-shop-vue\renren-fast-vue> npm install
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
> node-sass@4.14.1 install E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-sass
> node scripts/install.js
Cached binary found at C:\Users\司超龙\AppData\Roaming\npm-cache\node-sass\4.14.1\win32-x64-83_binding.node
> node-sass@4.14.1 postinstall E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-sass
> node scripts/build.js
Binary found at E:\项目\guli-shop-vue\renren-fast-vue\node_modules\node-sass\vendor\win32-x64-83\binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current:
{"os":"win32","arch":"x64"})
added 84 packages from 82 contributors in 30.394s
3 packages are looking for funding
run `npm fund` for details
执行npm run dev
测试
更多推荐
已为社区贡献5条内容
所有评论(0)