还是vue-element-admin的安装问题,今天再试试又有新变化了

来源:9-2 vue-admin-template构建管理系统前端

soarAbyss

2020-03-14

图片描述
图片描述

在这里输入代码
PS C:\Users\a\Desktop\vue-admin-template> npm rebuild node-sass

> node-sass@4.13.1 install C:\Users\a\Desktop\vue-admin-template\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-72_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 C:\Users\a\Desktop\vue-admin-template\node_modules\node-sass
> node scripts/build.js

Building: E:\微信小程序\云后端\node.exe C:\Users\a\Desktop\vue-admin-template\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.exe',
gyp verb cli   'C:\\Users\\a\\Desktop\\vue-admin-template\\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@12.16.1 | 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 (C:\Users\a\Desktop\vue-admin-template\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (C:\Users\a\Desktop\vue-admin-template\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (C:\Users\a\Desktop\vue-admin-template\node_modules\which\which.js:80:29)
gyp verb `which` failed     at C:\Users\a\Desktop\vue-admin-template\node_modules\which\which.js:89:16
gyp verb `which` failed     at C:\Users\a\Desktop\vue-admin-template\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at C:\Users\a\Desktop\vue-admin-template\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:166:21)
gyp verb `which` failed  python2 Error: not found: python2
gyp verb `which` failed     at getNotFoundError (C:\Users\a\Desktop\vue-admin-template\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (C:\Users\a\Desktop\vue-admin-template\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (C:\Users\a\Desktop\vue-admin-template\node_modules\which\which.js:80:29)
gyp verb `which` failed     at C:\Users\a\Desktop\vue-admin-template\node_modules\which\which.js:89:16
gyp verb `which` failed     at C:\Users\a\Desktop\vue-admin-template\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at C:\Users\a\Desktop\vue-admin-template\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:166:21) {
gyp verb `which` failed   stack: 'Error: not found: python2\n' +
gyp verb `which` failed     '    at getNotFoundError (C:\\Users\\a\\Desktop\\vue-admin-template\\node_modules\\which\\which.js:13:12)\n' +
gyp verb `which` failed     '    at F (C:\\Users\\a\\Desktop\\vue-admin-template\\node_modules\\which\\which.js:68:19)\n' +
gyp verb `which` failed     '    at E (C:\\Users\\a\\Desktop\\vue-admin-template\\node_modules\\which\\which.js:80:29)\n' +
gyp verb `which` failed     '    at C:\\Users\\a\\Desktop\\vue-admin-template\\node_modules\\which\\which.js:89:16\n' +
gyp verb `which` failed     '    at C:\\Users\\a\\Desktop\\vue-admin-template\\node_modules\\isexe\\index.js:42:5\n' +
gyp verb `which` failed     '    at C:\\Users\\a\\Desktop\\vue-admin-template\\node_modules\\isexe\\windows.js:36:5\n' +
gyp verb `which` failed     '    at FSReqCallback.oncomplete (fs.js:166: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 E:\Python\python.EXE
gyp verb check python version `E:\Python\python.EXE -c "import sys; print "2.7.15
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 12.16.1
gyp verb command install [ '12.16.1' ]
gyp verb install input version string "12.16.1"
gyp verb install installing version: 12.16.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 0
gyp verb needs "installVersion" 9
gyp verb install version is no good; reinstalling
gyp verb ensuring nodedir is created C:\Users\a\.node-gyp\12.16.1
gyp http GET https://nodejs.org/download/release/v12.16.1/node-v12.16.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v12.16.1/node-v12.16.1-headers.tar.gz
gyp verb extracted file from tarball include\node\common.gypi
gyp verb extracted file from tarball include\node\config.gypi
gyp verb extracted file from tarball include\node\node.h
gyp verb extracted file from tarball include\node\node_api.h
gyp verb extracted file from tarball include\node\js_native_api.h
gyp verb extracted file from tarball include\node\js_native_api_types.h
gyp verb extracted file from tarball include\node\node_api_types.h
gyp verb extracted file from tarball include\node\node_buffer.h
gyp verb extracted file from tarball include\node\node_object_wrap.h
gyp verb extracted file from tarball include\node\node_version.h
gyp verb extracted file from tarball include\node\v8-wasm-trap-handler-win.h
gyp verb extracted file from tarball include\node\v8.h
gyp verb extracted file from tarball include\node\v8-profiler.h
gyp verb extracted file from tarball include\node\v8-util.h
gyp verb extracted file from tarball include\node\v8-platform.h
gyp verb extracted file from tarball include\node\v8-value-serializer-version.h
gyp verb extracted file from tarball include\node\v8-version-string.h
gyp verb extracted file from tarball include\node\v8-version.h
gyp verb extracted file from tarball include\node\v8config.h
gyp verb extracted file from tarball include\node\v8-internal.h
gyp verb extracted file from tarball include\node\v8-wasm-trap-handler-posix.h
gyp verb extracted file from tarball include\node\v8-testing.h
gyp verb extracted file from tarball include\node\libplatform\libplatform-export.h
gyp verb extracted file from tarball include\node\libplatform\libplatform.h
gyp verb extracted file from tarball include\node\libplatform\v8-tracing.h
gyp verb extracted file from tarball include\node\uv\aix.h
gyp verb extracted file from tarball include\node\uv\android-ifaddrs.h
gyp verb extracted file from tarball include\node\uv\bsd.h
gyp verb extracted file from tarball include\node\uv\darwin.h
gyp verb extracted file from tarball include\node\uv\linux.h
gyp verb extracted file from tarball include\node\uv\os390.h
gyp verb extracted file from tarball include\node\uv\posix.h
gyp verb extracted file from tarball include\node\uv\stdint-msvc2008.h
gyp verb extracted file from tarball include\node\uv\sunos.h
gyp verb extracted file from tarball include\node\uv\threadpool.h
gyp verb extracted file from tarball include\node\uv\tree.h

写回答

1回答

谢成

2020-03-14

安装依赖的时候,node-sass安装失败了,应该是网络问题。

使用taobao镜像重新安装下:

npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/

1
1
soarAbyss
非常感谢!磨磨唧唧整了一整天,这下ok了
2020-03-14
共1条回复

微信小程序云开发-从0打造云音乐全栈小程序

横跨小程序端、云后端、CMS一站式云开发的小程序全栈课程

1938 学习 · 2768 问题

查看课程