renren-fast-vue依赖安装报错
版本:renren-fast |
开发环境:vue; node v12.13.0; |
renren-fast-vue依赖安装报错(求大神帮忙):
[pre]
[2/5] scripts.postinstall node-sass@4.9.0 run "node scripts/build.js", root: "D:\\APP_FILE\\java\\github\\fastDevelop\\renren\\renren-fast-vue\\node_modules\\_node-sass@4.9.0@node-sass"
Building: D:\Program Files\nodejs\node.exe D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_node-gyp@3.8.0@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:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'D:\\APP_FILE\\java\\github\\fastDevelop\\renren\\renren-fast-vue\\node_modules\\_node-gyp@3.8.0@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.13.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/mirrors/node
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:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_which@1.3.1@which\which.js:13:12)
gyp verb `which` failed at F (D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_which@1.3.1@which\which.js:68:19)
gyp verb `which` failed at E (D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_which@1.3.1@which\which.js:80:29)
gyp verb `which` failed at D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_which@1.3.1@which\which.js:89:16
gyp verb `which` failed at D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_isexe@2.0.0@isexe\index.js:42:5
gyp verb `which` failed at D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_isexe@2.0.0@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:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_which@1.3.1@which\which.js:13:12)
gyp verb `which` failed at F (D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_which@1.3.1@which\which.js:68:19)
gyp verb `which` failed at E (D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_which@1.3.1@which\which.js:80:29)
gyp verb `which` failed at D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_which@1.3.1@which\which.js:89:16
gyp verb `which` failed at D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_isexe@2.0.0@isexe\index.js:42:5
gyp verb `which` failed at D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_isexe@2.0.0@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:\\APP_FILE\\java\\github\\fastDevelop\\renren\\renren-fast-vue\\node_modules\\_which@1.3.1@which\\which.js:13:12)\n' +
gyp verb `which` failed ' at F (D:\\APP_FILE\\java\\github\\fastDevelop\\renren\\renren-fast-vue\\node_modules\\_which@1.3.1@which\\which.js:68:19)\n' +
gyp verb `which` failed ' at E (D:\\APP_FILE\\java\\github\\fastDevelop\\renren\\renren-fast-vue\\node_modules\\_which@1.3.1@which\\which.js:80:29)\n' +
gyp verb `which` failed ' at D:\\APP_FILE\\java\\github\\fastDevelop\\renren\\renren-fast-vue\\node_modules\\_which@1.3.1@which\\which.js:89:16\n' +
gyp verb `which` failed ' at D:\\APP_FILE\\java\\github\\fastDevelop\\renren\\renren-fast-vue\\node_modules\\_isexe@2.0.0@isexe\\index.js:42:5\n' +
gyp verb `which` failed ' at D:\\APP_FILE\\java\\github\\fastDevelop\\renren\\renren-fast-vue\\node_modules\\_isexe@2.0.0@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:\APP\Python\Python35\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: D:\APP\Python\Python35\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:295:12)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "D:\\APP_FILE\\java\\github\\fastDevelop\\renren\\renren-fast-vue\\node_modules\\_node-gyp@3.8.0@node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\node_modules\_node-sass@4.9.0@node-sass
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
[npminstall:runscript:error] node-sass@4.9.0 scripts.postinstall run "node scripts/build.js" error: Error [RunScriptError]: Run "C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js" error, exit code 1
at ChildProcess.<anonymous> (C:\Users\87875\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:96:21)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) {
name: 'RunScriptError',
stdio: [Object],
exitcode: 1
}
× Install fail! RunScriptError: post install error, please remove node_modules before retry!
Run "C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js" error, exit code 1
RunScriptError: Run "C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js" error, exit code 1
at ChildProcess.<anonymous> (C:\Users\87875\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:96:21)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
npminstall version: 3.27.0
npminstall args: D:\Program Files\nodejs\node.exe C:\Users\87875\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\87875\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://r.npm.taobao.org
PS D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue> C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
internal/modules/cjs/loader.js:797
throw err;
^
Error: Cannot find module 'D:\APP_FILE\java\github\fastDevelop\renren\renren-fast-vue\scripts\build.js'
[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:687:27)[39m
[90m at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)[39m
[90m at internal/main/run_main_module.js:17:11[39m {
code: [32m'MODULE_NOT_FOUND'[39m,
requireStack: []
}
[/pre]
-
2020-05-28
开源版,需要使用node8.x