npm install

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

qq_慕盖茨2229007

2020-04-20

图片描述
安装了python2.7,npm install还是出现了问题

写回答

2回答

谢成

2020-04-20

1、连接超时了,换个好一些的网络环境

//img.mukewang.com/szimg/5e9db45f09d0b30513440358.jpg

2、电脑中配置python环境变量,如何配置可百度

3、遇到问题还是提供截图吧,不要直接粘贴代码或日志,粘贴进来会丢失很多线索

0
0

qq_慕盖茨2229007

提问者

2020-04-20

老师这是补充的错误详细处

Building: D:\node\node.exe D:\Git\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   'D:\\node\\node.exe',

gyp verb cli   'D:\\Git\\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.14.0 | 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 (D:\Git\vue-admin-template\node_modules\which\which.js:13:12)

gyp verb `which` failed     at F (D:\Git\vue-admin-template\node_modules\which\which.js:68:19)

gyp verb `which` failed     at E (D:\Git\vue-admin-template\node_modules\which\which.js:80:29)

gyp verb `which` failed     at D:\Git\vue-admin-template\node_modules\which\which.js:89:16

gyp verb `which` failed     at D:\Git\vue-admin-template\node_modules\isexe\index.js:42:5

gyp verb `which` failed     at D:\Git\vue-admin-template\node_modules\isexe\windows.js:36:5

gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:158:21)

gyp verb `which` failed  python2 Error: not found: python2

gyp verb `which` failed     at getNotFoundError (D:\Git\vue-admin-template\node_modules\which\which.js:13:12)

gyp verb `which` failed     at F (D:\Git\vue-admin-template\node_modules\which\which.js:68:19)

gyp verb `which` failed     at E (D:\Git\vue-admin-template\node_modules\which\which.js:80:29)

gyp verb `which` failed     at D:\Git\vue-admin-template\node_modules\which\which.js:89:16

gyp verb `which` failed     at D:\Git\vue-admin-template\node_modules\isexe\index.js:42:5

gyp verb `which` failed     at D:\Git\vue-admin-template\node_modules\isexe\windows.js:36:5

gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:158:21) {

gyp verb `which` failed   stack: 'Error: not found: python2\n' +

gyp verb `which` failed     '    at getNotFoundError (D:\\Git\\vue-admin-template\\node_modules\\which\\which.js:13:12)\n' +

gyp verb `which` failed     '    at F (D:\\Git\\vue-admin-template\\node_modules\\which\\which.js:68:19)\n' +

gyp verb `which` failed     '    at E (D:\\Git\\vue-admin-template\\node_modules\\which\\which.js:80:29)\n' +

gyp verb `which` failed     '    at D:\\Git\\vue-admin-template\\node_modules\\which\\which.js:89:16\n' +

gyp verb `which` failed     '    at D:\\Git\\vue-admin-template\\node_modules\\isexe\\index.js:42:5\n' +

gyp verb `which` failed     '    at D:\\Git\\vue-admin-template\\node_modules\\isexe\\windows.js:36:5\n' +

gyp verb `which` failed     '    at FSReqCallback.oncomplete (fs.js:158: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 D:\Python27\python.EXE

gyp verb check python version `D:\Python27\python.EXE -c "import sys; print "2.7.17

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.14.0

gyp verb command install [ '12.14.0' ]

gyp verb install input version string "12.14.0"

gyp verb install installing version: 12.14.0

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\周佳丽\.node-gyp\12.14.0

gyp http GET https://nodejs.org/download/release/v12.14.0/node-v12.14.0-headers.tar.gz


0
0

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

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

1938 学习 · 2768 问题

查看课程