安装VueCLI的时候碰到的了这个,求教

  • Post author:
  • Post category:vue


npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained

npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained

npm WARN deprecated har-validator@5.1.5: this library is no longer supported

npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated

npm WARN deprecated graphql-extensions@0.15.0: The  API has been removed from Apollo Server 3. Use the plugin API instead: https://www.apollographql.com/docs/apollo-server/integrations/plugins/

npm WARN deprecated @hapi/address@2.1.4: Moved to ‘npm install @sideway/address’

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained

npm WARN deprecated @hapi/joi@15.1.1: joi is leaving the @hapi organization and moving back to ‘joi’ (https://github.com/sideway/joi/issues/2411)

npm ERR! code 1

npm ERR! path C:\Users\15456\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\utf-8-validate

npm ERR! command failed

npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild

npm ERR! �ڴ˽��������һ������һ����Ŀ����Ҫ���ò������ɣ������ӡ�-m�����ء�

npm ERR!   validation.c

npm ERR!   win_delay_load_hook.cc

npm ERR! C:\\Users\\15456\\AppData\\Local\\node-gyp\\Cache\\16.5.0\\x64\\node.lib : fatal error LNK1107: �ļ���Ч����: �޷��� 0x596346 ����ȡ [C:\Users\15456\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\utf-8-validate\build\validation.vcxproj]

npm ERR! gyp info it worked if it ends with ok

npm ERR! gyp info using node-gyp@7.1.2

npm ERR! gyp info using node@16.5.0 | win32 | x64

npm ERR! gyp info find Python using Python version 3.7.9 found at “D:\python\python.exe”

npm ERR! gyp info find VS using VS2019 (16.10.31515.178) found at:

npm ERR! gyp info find VS “C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools”

npm ERR! gyp info find VS run with –verbose for detailed information

npm ERR! (node:11860) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.

npm ERR! (Use `node –trace-deprecation …` to show where the warning was created)

npm ERR! gyp info spawn D:\python\python.exe

npm ERR! gyp info spawn args [

npm ERR! gyp info spawn args   ‘C:\\Users\\15456\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py’,

npm ERR! gyp info spawn args   ‘binding.gyp’,

npm ERR! gyp info spawn args   ‘-f’,

npm ERR! gyp info spawn args   ‘msvs’,

npm ERR! gyp info spawn args   ‘-I’,

npm ERR! gyp info spawn args   ‘C:\\Users\\15456\\AppData\\Roaming\\npm\\node_modules\\@vue\\cli\\node_modules\\utf-8-validate\\build\\config.gypi’,

npm ERR! gyp info spawn args   ‘-I’,

npm ERR! gyp info spawn args   ‘C:\\Users\\15456\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi’,

npm ERR! gyp info spawn args   ‘-I’,

npm ERR! gyp info spawn args   ‘C:\\Users\\15456\\AppData\\Local\\node-gyp\\Cache\\16.5.0\\include\\node\\common.gypi’,

npm ERR! gyp info spawn args   ‘-Dlibrary=shared_library’,

npm ERR! gyp info spawn args   ‘-Dvisibility=default’,

npm ERR! gyp info spawn args   ‘-Dnode_root_dir=C:\\Users\\15456\\AppData\\Local\\node-gyp\\Cache\\16.5.0’,

npm ERR! gyp info spawn args   ‘-Dnode_gyp_dir=C:\\Users\\15456\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp’,

npm ERR! gyp info spawn args   ‘-Dnode_lib_file=C:\\\\Users\\\\15456\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.5.0\\\\<(target_arch)\\\\node.lib’,

npm ERR! gyp info spawn args   ‘-Dmodule_root_dir=C:\\Users\\15456\\AppData\\Roaming\\npm\\node_modules\\@vue\\cli\\node_modules\\utf-8-validate’,

npm ERR! gyp info spawn args   ‘-Dnode_engine=v8’,

npm ERR! gyp info spawn args   ‘–depth=.’,

npm ERR! gyp info spawn args   ‘–no-parallel’,

npm ERR! gyp info spawn args   ‘–generator-output’,

npm ERR! gyp info spawn args   ‘C:\\Users\\15456\\AppData\\Roaming\\npm\\node_modules\\@vue\\cli\\node_modules\\utf-8-validate\\build’,

npm ERR! gyp info spawn args   ‘-Goutput_dir=.’

npm ERR! gyp info spawn args ]

npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe

npm ERR! gyp info spawn args [

npm ERR! gyp info spawn args   ‘build/binding.sln’,

npm ERR! gyp info spawn args   ‘/clp:Verbosity=minimal’,

npm ERR! gyp info spawn args   ‘/nologo’,

npm ERR! gyp info spawn args   ‘/p:Configuration=Release;Platform=x64’

npm ERR! gyp info spawn args ]

npm ERR! gyp ERR! build error

npm ERR! gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1

npm ERR! gyp ERR! stack     at ChildProcess.onExit (C:\Users\15456\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)

npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:394:28)

npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

npm ERR! gyp ERR! System Windows_NT 10.0.18362

npm ERR! gyp ERR! command “D:\\不常用\\node.exe” “C:\\Users\\15456\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js” “rebuild”

npm ERR! gyp ERR! cwd C:\Users\15456\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\utf-8-validate

npm ERR! gyp ERR! node -v v16.5.0

npm ERR! gyp ERR! node-gyp -v v7.1.2

npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\15456\AppData\Local\npm-cache\_logs\2021-07-28T10_29_51_678Z-debug.log

C:\Users\15456>npm install –global –production windows-build-tools

npm WARN deprecated har-validator@5.1.5: this library is no longer supported

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142



版权声明:本文为Bolic_7s原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。