错误信息:DELL@WXT-microcomputer MINGW64 /e/Vue/ProjectTest/vue-element-admin (master)
$ npm install --registry=https://registry.npm.taobao.org
npm WARN deprecated [email protected]: This project has been renamed to 'tasksfile'. I nstall using 'npm install tasksfile' instead.
npm WARN deprecated [email protected]: 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 [email protected]: Package no longer supported. Contact support@n pmjs.com for more info.
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, fl atted is its successor.
npm WARN deprecated [email protected]: Please upgrade to kleur@3 or migrate to 'ansi-c olors' if you prefer the old syntax. Visit
> [email protected] install E:\Vue\ProjectTest\vue-element-admin\node_modules\yorkie
> node bin/install.js
setting up Git hooks
done
> [email protected] install E:\Vue\ProjectTest\vue-element-admin\node_modules\husky
> node husky install
husky > setting up git hooks
husky > done
> [email protected] 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
> [email protected] 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 -)
> [email protected] 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/)
> [email protected] 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 [email protected]
gyp info using [email protected] | 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 "
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: [email protected] (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! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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: [email protected] (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" })
+ [email protected]
updated 1 package in 35.003s
DELL@WXT-microcomputer MINGW64 /e/Vue/ProjectTest/vue-element-admin (master)
$ npm install node-sass --save-dev
> [email protected] 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
> [email protected] 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 [email protected]
gyp info using [email protected] | 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 "
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: [email protected] (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! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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
> [email protected] 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
> [email protected] 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 [email protected]
gyp info using [email protected] | 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 "
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 [email protected] 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: [email protected] (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! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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
> [email protected] 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
> [email protected] 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 [email protected]
gyp info using [email protected] | 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 "
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: [email protected] (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! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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
> [email protected] 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
> [email protected] 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: [email protected] (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" })
+ [email protected]
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