安装quasar报错,不知道是不是和python2有关?应该如何解决啊?

发布于 2022-09-12 00:52:50 字数 11170 浏览 11 评论 0

PS D:workspaceAgrioComAdminUI> yarn add quasar @quasar/extras
yarn add v1.13.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > vue2-leaflet@2.4.2" has unmet peer dependency "@types/leaflet@^1.5.5".
warning "vue2-leaflet-markercluster > leaflet.markercluster@1.4.1" has incorrect peer dependency "leaflet@~1.3.1".
warning " > eslint-loader@2.2.1" has unmet peer dependency "webpack@>=2.0.0 <5.0.0".
[4/4] Building fresh packages...
[1/2] ⠠ node-sass
error D:workspaceAgrioComAdminUInode_modulesnode-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: D:workspaceAgrioComAdminUInode_modulesnode-sass
Output:
Building: D:Program Filesnodejsnode.exe D:workspaceAgrioComAdminUInode_modulesnode-gypbinnode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'D:\Program Files\nodejs\node.exe',
gyp verb cli 'D:\workspace\AgrioCom\AdminUI\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.3.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:workspaceAgrioComAdminUInode_moduleswhichwhich.js:13:12)
gyp verb which failed at F (D:workspaceAgrioComAdminUInode_moduleswhichwhich.js:68:19)
gyp verb which failed at E (D:workspaceAgrioComAdminUInode_moduleswhichwhich.js:80:29)
gyp verb which failed at D:workspaceAgrioComAdminUInode_moduleswhichwhich.js:89:16
gyp verb which failed at D:workspaceAgrioComAdminUInode_modulesisexeindex.js:42:5
gyp verb which failed at D:workspaceAgrioComAdminUInode_modulesisexewindows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:182:21)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError (D:workspaceAgrioComAdminUInode_moduleswhichwhich.js:13:12)
gyp verb which failed at F (D:workspaceAgrioComAdminUInode_moduleswhichwhich.js:68:19)
gyp verb which failed at E (D:workspaceAgrioComAdminUInode_moduleswhichwhich.js:80:29)
gyp verb which failed at D:workspaceAgrioComAdminUInode_moduleswhichwhich.js:89:16
gyp verb which failed at D:workspaceAgrioComAdminUInode_modulesisexeindex.js:42:5
gyp verb which failed at D:workspaceAgrioComAdminUInode_modulesisexewindows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:182:21)
gyp verb which failed stack:
gyp verb which failed 'Error: not found: python2n at getNotFoundError (D:\workspace\AgrioCom\AdminUI\node_modules\which\which.js:13:12)n at F (D:\workspace\AgrioCom\AdminUI\node_modules\which\which.js:68:19)n at E (D:\workspace\AgrioCom\AdminUI\node_modules\which\which.js:80:29)n at D:\workspace\AgrioCom\AdminUI\node_modules\which\which.js:89:16n at D:\workspace\AgrioCom\AdminUI\node_modules\isexe\index.js:42:5n at D:\workspace\AgrioCom\AdminUI\node_modules\isexe\windows.js:36:5n at FSReqWrap.oncomplete (fs.js:182:21)',
gyp verb which failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which succeeded python C:Usersjicx2.windows-build-toolspython27python.EXE
gyp verb check python version `C:Usersjicx2.windows-build-toolspython27python.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: 10.3.0
gyp verb command install [ '10.3.0' ]
gyp verb install input version string "10.3.0"
gyp verb install installing version: 10.3.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" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 10.3.0
gyp verb build dir attempting to create "build" dir: D:workspaceAgrioComAdminUInode_modulesnode-sassbuild
gyp verb build dir "build" dir needed to be created? D:workspaceAgrioComAdminUInode_modulesnode-sassbuild
gyp verb find vs2017 Found installation at: d:Program FilesMicrosoft Visual Studio2017Community
gyp verb find vs2017 - Found Microsoft.VisualStudio.Component.VC.Tools.x86.x64
gyp verb find vs2017 - Found Microsoft.VisualStudio.VC.MSBuild.Base
gyp verb find vs2017 - Found Microsoft.VisualStudio.Component.Windows10SDK.17134
gyp verb find vs2017 - Using this installation with Windows 10 SDK
gyp verb find vs2017 using installation: d:Program FilesMicrosoft Visual Studio2017Community
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: D:workspaceAgrioComAdminUInode_modulesnode-sassbuildconfig.gypi
gyp verb config.gypi checking for gypi file: D:workspaceAgrioComAdminUInode_modulesnode-sassconfig.gypi
gyp verb common.gypi checking for gypi file: D:workspaceAgrioComAdminUInode_modulesnode-sasscommon.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:Usersjicx2.windows-build-toolspython27python.EXE
gyp info spawn args [ 'D:\workspace\AgrioCom\AdminUI\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2015',
gyp info spawn args '-I',
gyp info spawn args 'D:\workspace\AgrioCom\AdminUI\node_modules\node-sass\build\config.gypi',gyp info spawn args '-I',
gyp info spawn args 'D:\workspace\AgrioCom\AdminUI\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\jicx2\.node-gyp\10.3.0\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\jicx2\.node-gyp\10.3.0',
gyp info spawn args '-Dnode_gyp_dir=D:\workspace\AgrioCom\AdminUI\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\Users\jicx2\.node-gyp\10.3.0\<(target_arch)\node.lib',gyp info spawn args '-Dmodule_root_dir=D:\workspace\AgrioCom\AdminUI\node_modules\node-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'D:\workspace\AgrioCom\AdminUI\node_modules\node-sass\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:Usersjicx2.node-gyp10.3.0
gyp verb found first Solution file build/binding.sln
gyp verb using MSBuild: d:Program FilesMicrosoft Visual Studio2017CommunityMSBuild15.0BinMSBuild.exe
gyp info spawn d:Program FilesMicrosoft Visual Studio2017CommunityMSBuild15.0BinMSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
�ڴ˽��������һ������һ����Ŀ����Ҫ���ò������ɣ������ӡ�/m�����ء�
��������ʱ��Ϊ 2020/2/2 16:35:18��
�ڵ� 1 �ϵ���Ŀ��D:workspaceAgrioComAdminUInode_modulesnode-sassbuildbinding.sln��(Ĭ��Ŀ��)��
ValidateSolutionConfiguration:
�������ɽ���������á�Release|x64����
��Ŀ��D:workspaceAgrioComAdminUInode_modulesnode-sassbuildbinding.sln��(1)���ڽڵ� 1 �����ɡ�D:workspaceAgrioComAdminUInode_modulesnode-sassbuildbinding.vcxproj.metaproj��(2) (Ĭ��Ŀ��)��
��Ŀ��D:workspaceAgrioComAdminUInode_modulesnode-sassbuildbinding.vcxproj.metaproj��(2)���ڽڵ� 1
�����ɡ�D:workspaceAgrioComAdminUInode_modulesnode-sassbuildsrclibsass.vcxproj��(3) (Ĭ��Ŀ��)��
d:Program FilesMicrosoft Visual Studio2017CommunityCommon7IDEVCVCTargetsPlatformsx64PlatformToolsetsv141Toolset.targets(36,5): error MSB8036: �Ҳ��� Windows SDK �汾10.0.17134.0���밲װ����İ汾��
Windows SDK ��������Ŀ����ҳ�л�ͨ���Ҽ��������������ѡ���ض��������Ŀ�ꡱ������ SDK �汾�� [D:workspaceAgrioComAdminUInode_modulesnode-sassbuildsrclibsass.vcxproj]
�����������Ŀ��D:workspaceAgrioComAdminUInode_modulesnode-sassbuildsrclibsass.vcxproj��(Ĭ��Ŀ��)�IJ��� - ʧ�ܡ�
�����������Ŀ��D:workspaceAgrioComAdminUInode_modulesnode-sassbuildbinding.vcxproj.metaproj��(Ĭ��Ŀ��)�IJ��� - ʧ�ܡ�
�����������Ŀ��D:workspaceAgrioComAdminUInode_modulesnode-sassbuildbinding.sln��(Ĭ��Ŀ��)�IJ��� -
ʧ�ܡ�

����ʧ�ܡ�

��D:workspaceAgrioComAdminUInode_modulesnode-sassbuildbinding.sln��(Ĭ��Ŀ��) (1) ->
��D:workspaceAgrioComAdminUInode_modulesnode-sassbuildbinding.vcxproj.metaproj��(Ĭ��Ŀ��) (2) ->��D:workspaceAgrioComAdminUInode_modulesnode-sassbuildsrclibsass.vcxproj��(Ĭ��Ŀ��) (3) ->
(Desktop_PlatformPrepareForBuild Ŀ��) ->
d:Program FilesMicrosoft Visual Studio2017CommunityCommon7IDEVCVCTargetsPlatformsx64PlatformToolsetsv141Toolset.targets(36,5): error MSB8036: �Ҳ��� Windows SDK �汾10.0.17134.0���밲װ����İ汾�� Windows SDK ��������Ŀ����ҳ�л�ͨ���Ҽ��������������ѡ���ض��������Ŀ�ꡱ������ SDK �汾�� [D:workspaceAgrio
ComAdminUInode_modulesnode-sassbuildsrclibsass.vcxproj]

0 ������
1 ������

����ʱ�� 00:00:00.31
gyp ERR! build error
gyp ERR! stack Error: d:\Program Files\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (D:workspaceAgrioComAdminUInode_modulesnode-gyplibbuild.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "D:\Program Files\nodejs\node.exe" "D:\workspace\AgrioCom\AdminUI\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:workspaceAgrioComAdminUInode_modulesnode-sass
gyp ERR! node -v v10.3.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1

PS D:workspaceAgrioComAdminUI>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文