vue-element-admin安装时报错

错误信息:DELL@WXT-microcomputer MINGW64 /e/Vue/ProjectTest/vue-element-admin (master)
$ npm install --registry=https://registry.npm.taobao.org
npm WARN deprecated runjs@4.4.2: This project has been renamed to 'tasksfile'. I                                                                                                                nstall using 'npm install tasksfile' instead.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not r                                                                                                                ecommended for usage due to the number of issues. Please, upgrade your dependenc                                                                                                                ies to the actual version of core-js@3.
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@n                                                                                                                pmjs.com for more info.
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, fl                                                                                                                atted is its successor.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-c                                                                                                                olors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/rele                                                                                                                ases/tag/v3.0.0\> for migration path(s).

> yorkie@2.0.0 install E:\Vue\ProjectTest\vue-element-admin\node_modules\yorkie
> node bin/install.js

setting up Git hooks
done


> husky@1.3.1 install E:\Vue\ProjectTest\vue-element-admin\node_modules\husky
> node husky install

husky > setting up git hooks
husky > done

> node-sass@4.13.1 install E:\Vue\ProjectTest\vue-element-admin\node_modules\nod                                                                                                                e-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.1                                                                                                                3.1/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/win                                                                                                                32-x64-64_binding.node":

connect ETIMEDOUT 54.231.114.90:443

Timed out whilst downloading the prebuilt binary

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

> core-js@2.6.11 postinstall E:\Vue\ProjectTest\vue-element-admin\node_modules\c                                                                                                                ore-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfill                                                                                                                ing JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Colle                                                                                                                ctive or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a goo                                                                                                                d job -)


> ejs@2.7.4 postinstall E:\Vue\ProjectTest\vue-element-admin\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https:/                                                                                                                /jakejs.com/)


> node-sass@4.13.1 postinstall E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \node-sass
> node scripts/build.js

Building: E:\node.js\node.exe E:\Vue\ProjectTest\vue-element-admin\node_modules\                                                                                                                node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --li                                                                                                                bsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'E:\\node.js\\node.exe',
gyp verb cli   'E:\\Vue\\ProjectTest\\vue-element-admin\\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 info using node-gyp@3.8.0
gyp info using node@10.16.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb download using dist-url https://npm.taobao.org/dist
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:\Vue\ProjectTest\vue-element-                                                                                                                admin\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:68:19)
gyp verb `which` failed     at E (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:80:29)
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \which\which.js:89:16
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\index.js:42:5
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (E:\Vue\ProjectTest\vue-element-                                                                                                                admin\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:68:19)
gyp verb `which` failed     at E (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:80:29)
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \which\which.js:89:16
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\index.js:42:5
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python2\n    at getNotFoundError (                                                                                                                E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\which.js:13:12)\n                                                                                                                    at F (E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\which.js:                                                                                                                68:19)\n    at E (E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\                                                                                                                which.js:80:29)\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\w                                                                                                                hich\\which.js:89:16\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_modul                                                                                                                es\\isexe\\index.js:42:5\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_m                                                                                                                odules\\isexe\\windows.js:36:5\n    at FSReqWrap.oncomplete (fs.js:153:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python E:\python3.x\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: E:\python3.x\python.EXE -c import sys; pri                                                                                                                nt "%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:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces                                                                                                                s.js:259:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "E:\\node.js\\node.exe" "E:\\Vue\\ProjectTest\\vue-element-admi                                                                                                                n\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ex                                                                                                                t=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\Vue\ProjectTest\vue-element-admin\node_modules\node-sass
gyp ERR! node -v v10.16.0
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.11 (node_modules\fs                                                                                                                events):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@                                                                                                                1.2.11: 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 log                                                                                                                ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     E:\node.js\node_cache\_logs\2020-01-31T09_13_56_488Z-debug.log

DELL@WXT-microcomputer MINGW64 /e/Vue/ProjectTest/vue-element-admin (master)
$ npm install sass-loader --save-dev
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\fs                                                                                                                events):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@                                                                                                                1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"                                                                                                                })

+ sass-loader@7.3.1
updated 1 package in 35.003s

DELL@WXT-microcomputer MINGW64 /e/Vue/ProjectTest/vue-element-admin (master)
$ npm install node-sass --save-dev

> node-sass@4.13.1 install E:\Vue\ProjectTest\vue-element-admin\node_modules\nod                                                                                                                e-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.1                                                                                                                3.1/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/win                                                                                                                32-x64-64_binding.node":

ESOCKETTIMEDOUT

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:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \node-sass
> node scripts/build.js

Building: E:\node.js\node.exe E:\Vue\ProjectTest\vue-element-admin\node_modules\                                                                                                                node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --li                                                                                                                bsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'E:\\node.js\\node.exe',
gyp verb cli   'E:\\Vue\\ProjectTest\\vue-element-admin\\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 info using node-gyp@3.8.0
gyp info using node@10.16.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb download using dist-url https://npm.taobao.org/dist
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:\Vue\ProjectTest\vue-element-                                                                                                                admin\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:68:19)
gyp verb `which` failed     at E (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:80:29)
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \which\which.js:89:16
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\index.js:42:5
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (E:\Vue\ProjectTest\vue-element-                                                                                                                admin\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:68:19)
gyp verb `which` failed     at E (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:80:29)
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \which\which.js:89:16
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\index.js:42:5
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python2\n    at getNotFoundError (                                                                                                                E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\which.js:13:12)\n                                                                                                                    at F (E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\which.js:                                                                                                                68:19)\n    at E (E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\                                                                                                                which.js:80:29)\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\w                                                                                                                hich\\which.js:89:16\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_modul                                                                                                                es\\isexe\\index.js:42:5\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_m                                                                                                                odules\\isexe\\windows.js:36:5\n    at FSReqWrap.oncomplete (fs.js:153:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python E:\python3.x\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: E:\python3.x\python.EXE -c import sys; pri                                                                                                                nt "%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:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces                                                                                                                s.js:259:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "E:\\node.js\\node.exe" "E:\\Vue\\ProjectTest\\vue-element-admi                                                                                                                n\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ex                                                                                                                t=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\Vue\ProjectTest\vue-element-admin\node_modules\node-sass
gyp ERR! node -v v10.16.0
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.11 (node_modules\fs                                                                                                                events):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@                                                                                                                1.2.11: 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 log                                                                                                                ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     E:\node.js\node_cache\_logs\2020-01-31T10_48_14_165Z-debug.log

DELL@WXT-microcomputer MINGW64 /e/Vue/ProjectTest/vue-element-admin (master)
$ npm install node-sass --save-dev

> node-sass@4.13.1 install E:\Vue\ProjectTest\vue-element-admin\node_modules\nod                                                                                                                e-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.1                                                                                                                3.1/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/win                                                                                                                32-x64-64_binding.node":

ESOCKETTIMEDOUT

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:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \node-sass
> node scripts/build.js

Building: E:\node.js\node.exe E:\Vue\ProjectTest\vue-element-admin\node_modules\                                                                                                                node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --li                                                                                                                bsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'E:\\node.js\\node.exe',
gyp verb cli   'E:\\Vue\\ProjectTest\\vue-element-admin\\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 info using node-gyp@3.8.0
gyp info using node@10.16.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb download using dist-url https://npm.taobao.org/dist
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:\Vue\ProjectTest\vue-element-                                                                                                                admin\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:68:19)
gyp verb `which` failed     at E (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:80:29)
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \which\which.js:89:16
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\index.js:42:5
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (E:\Vue\ProjectTest\vue-element-                                                                                                                admin\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:68:19)
gyp verb `which` failed     at E (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:80:29)
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \which\which.js:89:16
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\index.js:42:5
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python2\n    at getNotFoundError (                                                                                                                E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\which.js:13:12)\n                                                                                                                    at F (E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\which.js:                                                                                                                68:19)\n    at E (E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\                                                                                                                which.js:80:29)\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\w                                                                                                                hich\\which.js:89:16\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_modul                                                                                                                es\\isexe\\index.js:42:5\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_m                                                                                                                odules\\isexe\\windows.js:36:5\n    at FSReqWrap.oncomplete (fs.js:153:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python E:\python3.x\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: E:\python3.x\python.EXE -c import sys; pri                                                                                                                nt "%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:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces                                                                                                                s.js:259:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "E:\\node.js\\node.exe" "E:\\Vue\\ProjectTest\\vue-element-admi                                                                                                                n\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ex                                                                                                                t=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\Vue\ProjectTest\vue-element-admin\node_modules\node-sass
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN rollback Rolling back readable-stream@2.3.6 failed (this is probably ha                                                                                                                rmless): EPERM: operation not permitted, rmdir 'E:\Vue\ProjectTest\vue-element-a                                                                                                                dmin\node_modules\fsevents\node_modules'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\fs                                                                                                                events):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@                                                                                                                1.2.11: 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 log                                                                                                                ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     E:\node.js\node_cache\_logs\2020-01-31T10_56_11_931Z-debug.log

DELL@WXT-microcomputer MINGW64 /e/Vue/ProjectTest/vue-element-admin (master)
$ npm install --registry=https://registry.npm.taobao.org

> node-sass@4.13.1 install E:\Vue\ProjectTest\vue-element-admin\node_modules\nod                                                                                                                e-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.1                                                                                                                3.1/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/win                                                                                                                32-x64-64_binding.node":

ESOCKETTIMEDOUT

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:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \node-sass
> node scripts/build.js

Building: E:\node.js\node.exe E:\Vue\ProjectTest\vue-element-admin\node_modules\                                                                                                                node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --li                                                                                                                bsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'E:\\node.js\\node.exe',
gyp verb cli   'E:\\Vue\\ProjectTest\\vue-element-admin\\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 info using node-gyp@3.8.0
gyp info using node@10.16.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb download using dist-url https://npm.taobao.org/dist
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:\Vue\ProjectTest\vue-element-                                                                                                                admin\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:68:19)
gyp verb `which` failed     at E (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:80:29)
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \which\which.js:89:16
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\index.js:42:5
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (E:\Vue\ProjectTest\vue-element-                                                                                                                admin\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:68:19)
gyp verb `which` failed     at E (E:\Vue\ProjectTest\vue-element-admin\node_modu                                                                                                                les\which\which.js:80:29)
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \which\which.js:89:16
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\index.js:42:5
gyp verb `which` failed     at E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python2\n    at getNotFoundError (                                                                                                                E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\which.js:13:12)\n                                                                                                                    at F (E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\which.js:                                                                                                                68:19)\n    at E (E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\which\\                                                                                                                which.js:80:29)\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_modules\\w                                                                                                                hich\\which.js:89:16\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_modul                                                                                                                es\\isexe\\index.js:42:5\n    at E:\\Vue\\ProjectTest\\vue-element-admin\\node_m                                                                                                                odules\\isexe\\windows.js:36:5\n    at FSReqWrap.oncomplete (fs.js:153:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python E:\python3.x\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: E:\python3.x\python.EXE -c import sys; pri                                                                                                                nt "%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:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces                                                                                                                s.js:259:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "E:\\node.js\\node.exe" "E:\\Vue\\ProjectTest\\vue-element-admi                                                                                                                n\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ex                                                                                                                t=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\Vue\ProjectTest\vue-element-admin\node_modules\node-sass
gyp ERR! node -v v10.16.0
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.11 (node_modules\fs                                                                                                                events):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@                                                                                                                1.2.11: 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 log                                                                                                                ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     E:\node.js\node_cache\_logs\2020-01-31T10_58_21_914Z-debug.log

DELL@WXT-microcomputer MINGW64 /e/Vue/ProjectTest/vue-element-admin (master)
$ npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass

> node-sass@4.13.1 install E:\Vue\ProjectTest\vue-element-admin\node_modules\nod                                                                                                                e-sass
> node scripts/install.js

Downloading binary from https://npm.taobao.org/mirrors/node-sass/v4.13.1/win32-x                                                                                                                64-64_binding.node
Download complete
Binary saved to E:\Vue\ProjectTest\vue-element-admin\node_modules\node-sass\vend                                                                                                                or\win32-x64-64\binding.node
Caching binary to E:\node.js\node_cache\node-sass\4.13.1\win32-x64-64_binding.no                                                                                                                de

> node-sass@4.13.1 postinstall E:\Vue\ProjectTest\vue-element-admin\node_modules                                                                                                                \node-sass
> node scripts/build.js

Binary found at E:\Vue\ProjectTest\vue-element-admin\node_modules\node-sass\vend                                                                                                                or\win32-x64-64\binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\fs                                                                                                                events):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@                                                                                                                1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"                                                                                                                })

+ node-sass@4.13.1
added 59 packages from 58 contributors in 29.599s

 

 

 


解决方法:

https://github.com/PanJiaChen/vue-element-admin/issues/24

安装失败的原因是node-sass下载的地址不对,
正确的地址是在这个目录下:https://github.com/sass/node-sass/releases
而非https://github.com/sass/node-sass/releases/download/v4.11.0/win32-x64-59_binding.node
但是如果不翻墙还是很难下载下来。

安装时指定镜像源
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass

 

 

然后又报错:

Failed to compile.

./src/components/Share/DropdownMenu.vue?vue&type=style&index=0&lang=scss& (./node_modules/css-loader??ref--8-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Share/DropdownMenu.vue?vue&type=style&index=0&lang=scss&) Module build failed (from ./node_modules/sass-loader/dist/cjs.js): Error: Cannot find module 'node-sass' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:690:17) at require (internal/modules/cjs/helpers.js:25:18) at getDefaultSassImpl (E:\Vue\FinalProject\vue-element-admin\node_modules\sass-loader\dist\index.js:198:10) at Object.loader (E:\Vue\FinalProject\vue-element-admin\node_modules\sass-loader\dist\index.js:80:29)

解决方法:cnpm install node-sass --save

 

 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
### 回答1: Vue-element-admin是一个基于Vue.js和Element UI的后台管理系统解决方案。以下是安装Vue-element-admin的步骤: 1. 安装Node.js和npm安装Vue-element-admin之前,您需要先安装Node.js和npm。您可以从官方网站下载并安装Node.js和npm。 2. 克隆Vue-element-admin仓库 您可以通过以下命令从GitHub上克隆Vue-element-admin仓库: git clone https://github.com/PanJiaChen/vue-element-admin.git 3. 安装依赖 进入Vue-element-admin目录,并运行以下命令安装依赖: cd vue-element-admin npm install 4. 运行项目 运行以下命令启动Vue-element-admin项目: npm run dev 5. 访问项目 在浏览器中访问http://localhost:9528即可查看Vue-element-admin项目。 以上就是Vue-element-admin安装教程。希望对您有所帮助。 ### 回答2: Vue-Element-Admin是一个基于Vue.js的开源后台管理系统模板。它提供了一个丰富的UI界面,可以帮助开发人员快速搭建基于Vue.js的后台应用。本教程将为你介绍如何安装Vue-Element-Admin。 1.安装Node.js 首先需要安装Node.js,以便使用npm(Node Package Manager)来安装Vue-Element-Admin。你可以到Node.js官网下载安装包,官网地址:https://nodejs.org/。 2.安装Vue CLI 在Node.js安装好之后,我们需要安装Vue CLI(Vue Command Line Interface)。Vue CLI是一个用于快速搭建Vue.js项目的命令行工具。在命令行中输入以下命令进行安装npm install -g @vue/cli 3.创建Vue-Element-Admin项目 安装好Vue CLI之后,我们可以使用它来创建Vue-Element-Admin项目。输入以下命令: vue create vue-element-admin 这个命令将会创建一个名为“vue-element-admin”的Vue项目。 4.安装Vue-Element-Admin 现在我们已经创建好了Vue项目,需要在这个项目中安装Vue-Element-Admin。在命令行中切换到项目目录,并输入以下命令: npm install vue-element-admin 这个命令将安装Vue-Element-Admin及其所有依赖项。 5.运行Vue-Element-Admin项目 在安装完成之后,输入以下命令运行Vue-Element-Admin项目: npm run serve 这个命令将会运行Vue-Element-Admin,并在浏览器中打开它。你可以在浏览器中进行应用的预览、开发和测试。 至此,你已经成功安装好了Vue-Element-Admin,并可以开始使用它来开发后台应用。希望这个教程能让你顺利地开始Vue-Element-Admin的学习之旅。 ### 回答3: Vue-Element-Admin是一个基于Vue.js和Element UI的管理系统模板。它的设计遵循了最佳实践,为您提供丰富的功能和易于使用的界面。 以下是Vue-Element-Admin安装教程: 1. 安装Node.js和Vue-cli 确保您的计算机上已安装Node.js和Vue-cli。如果您尚未安装这些软件,请先下载和安装它们。 2. 创建一个新的Vue项目 使用Vue-cli创建一个新的Vue项目: ``` vue create my-admin ``` 运行上面的命令后,您将被引导选择安装哪些功能。选择“Manually select features”,然后选择“Babel”和“Router”。 3. 安装vue-element-admin 使用npm安装vue-element-admin: ``` npm install vue-element-admin ``` 安装完成后,您可以在项目文件夹`src`中找到新安装vue-element-admin文件。 4. 配置vue-element-admin 要使用vue-element-admin,您需要将其配置到您的Vue项目中。 在`src/main.js`文件中,添加以下内容: ``` import Vue from 'vue' import App from './App.vue' import router from './router' import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' import './styles/index.scss' import VueFetch, { $fetch } from './plugins/fetch' Vue.config.productionTip = false Vue.use(ElementUI) Vue.use(VueFetch) new Vue({ router, render: h => h(App), }).$mount('#app') ``` 上面的代码导入了Vue、App、router、Element UI和VueFetch。它还将Element UI和VueFetch添加为Vue插件,并将Vue实例化。 在`src/router/index.js`文件中,导入vue-element-admin的路由: ``` import Vue from 'vue' import Router from 'vue-router' import Layout from '@/layout' Vue.use(Router) export const constantRoutes = [ { path: '/login', component: () => import('@/views/login/index'), hidden: true }, { path: '/', component: Layout, redirect: '/dashboard', children: [ { path: 'dashboard', component: () => import('@/views/dashboard/index'), name: 'Dashboard', meta: { title: 'Dashboard', icon: 'dashboard', affix: true } } ] } ] const createRouter = () => new Router({ // mode: 'history', // require service support scrollBehavior: () => ({ y: 0 }), routes: constantRoutes }) const router = createRouter() export default router ``` 在上面的代码中,布局文件是`src/layout/index.vue`,登录页面文件是`src/views/login/index.vue`,仪表盘页面文件是`src/views/dashboard/index.vue`。 5. 运行您的Vue项目 现在,您可以运行Vue项目: ``` npm run serve ``` 此您的管理系统模板已经可以访问了,您可以通过以下链接在浏览器中打开它: ``` http://localhost:8080 ``` 到此,Vue-Element-Admin安装就完成了。您可以查看其文档并根据需要进行进一步配置。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值