command C:Windowssystem32cmd.exe /d /s /c node ./build.js的解决方法
Posted 秋9
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了command C:Windowssystem32cmd.exe /d /s /c node ./build.js的解决方法相关的知识,希望对你有一定的参考价值。
【现象】
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path D:\\work\\vue-base2\\node_modules\\deasync
npm ERR! command failed
npm ERR! command C:\\Windows\\system32\\cmd.exe /d /s /c node ./build.js
npm ERR! �ڴ˽��������һ������һ����Ŀ����Ҫ���ò������ɣ������ӡ�/m�����ء�
npm ERR! MSBUILD : error MSB3428: δ�ܼ��� Visual C++ �����VCBuild.exe����Ҫ��������⣬1) ��װ .NET Framework 2.0 SDK��2) ��װ Microsoft Visua
l Studio 2005���� 3) ������������װ��������λ�ã��뽫��λ�����ӵ�ϵͳ·���С� [D:\\work\\vue-base2\\node_modules\\
deasync\\build\\binding.sln]
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@16.13.1 | win32 | x64
npm ERR! (node:8308) [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:\\Python27\\python.EXE
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'D:\\work\\vue-base2\\\\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 '-G',
npm ERR! gyp info spawn args 'msvs_version=auto',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'D:\\work\\vue-base2\\\\node_modules\\\\deasync\\\\build\\\\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'D:\\work\\vue-base2\\\\node_modules\\\\node-gyp\\\\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\\\Users\\\\Administrator\\\\.node-gyp\\\\16.13.1\\\\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\\\\Administrator\\\\.node-gyp\\\\16.13.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=D:\\work\\vue-base2\\\\node_modules\\\\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\Administrator\\\\.node-gyp\\\\16.13.1\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=D:\\work\\vue-base2\\\\node_modules\\\\deasync',
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 'D:\\work\\vue-base2\\\\node_modules\\\\deasync\\\\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
npm ERR! Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
npm ERR! gyp info spawn C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\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:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onExit (D:\\work\\vue-base2\\node_modules\\node-gyp\\lib\\build.js:262:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390: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.18363
npm ERR! gyp ERR! command "D:\\\\Program Files\\\\nodejs\\\\node.exe" "D:\\work\\vue-base2\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd D:\\work\\vue-base2\\node_modules\\deasync
npm ERR! gyp ERR! node -v v16.13.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed
npm ERR! A complete log of this run can be found in:
npm ERR! C:\\Users\\Administrator\\AppData\\Local\\npm-cache\\_logs\\2022-12-16T07_29_32_343Z-debug-0.log
【解决方法】
是由于node版本太高导致的,具体是多少版本,看一下vue项目中的vue版本版本。
以上是关于command C:Windowssystem32cmd.exe /d /s /c node ./build.js的解决方法的主要内容,如果未能解决你的问题,请参考以下文章
command C:Windowssystem32cmd.exe /d /s /c node ./build.js的解决方法
MobaXterm不能读取C:Windowssystem32作为系统变量
Jenkins 使用 maven 出现C:Windowssystem32configsystemprofile的解决
C:WINDOWSsystem32driversetchosts 文件的作用
C:WindowsSystem32driversetc 没有hosts文件解决办法
Windows 10:开机显示C:WINDOWSsystem32configsystemprofileDesktop不可用 的解决方法