npm ERR! A complete log of this run can be found in: npm ERR! F:\Program Files\nodejs\node_cache

人生之路坎坎坷坷,跌跌撞撞在所难免。但是,不论跌了多少次,你都必须坚强勇敢地站起来。任何时候,无论你面临着生命的何等困惑抑或经受着多少挫折,无论道路多艰难,希望变得如何渺茫,请你不要绝望,再试一次,坚持到底,成功终将属于勇不言败的你。

导读:本篇文章讲解 npm ERR! A complete log of this run can be found in: npm ERR! F:\Program Files\nodejs\node_cache,希望对大家有帮助,欢迎收藏,转发!站点地址:www.bmabk.com,来源:原文

npm ERR! code 1
npm ERR! path F:\Program Files\nodejs\node_global\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\\lenovo\\AppData\\Local\\node-gyp\\Cache\\14.17.5\\x64\\node.lib : fatal error LNK1107: �ļ���Ч����: �޷��� 0x6CCA8A ����ȡ [F:\Program Files\nodejs\node_global\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@14.17.5 | win32 | x64
npm ERR! gyp info find Python using Python version 3.8.5 found at "E:\python\python.exe"
npm ERR! gyp info find VS using VS2019 (16.8.30717.126) found at:
npm ERR! gyp info find VS "D:\visual studio"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn E:\python\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   'F:\\Program Files\\nodejs\\node_global\\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   'F:\\Program Files\\nodejs\\node_global\\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   'F:\\Program Files\\nodejs\\node_global\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\lenovo\\AppData\\Local\\node-gyp\\Cache\\14.17.5\\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\\lenovo\\AppData\\Local\\node-gyp\\Cache\\14.17.5',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=F:\\Program Files\\nodejs\\node_global\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\lenovo\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\14.17.5\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=F:\\Program Files\\nodejs\\node_global\\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   'F:\\Program Files\\nodejs\\node_global\\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 D:\visual studio\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: `D:\visual studio\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onExit (F:\Program Files\nodejs\node_global\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "F:\\Program Files\\nodejs\\node.exe" "F:\\Program Files\\nodejs\\node_global\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd F:\Program Files\nodejs\node_global\node_modules\@vue\cli\node_modules\utf-8-validate
npm ERR! gyp ERR! node -v v14.17.5
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!     F:\Program Files\nodejs\node_cache\_logs\2021-09-23T11_55_38_535Z-debug.log

切换淘宝镜像

npm install -g cnpm --registry=http://registry.npm.taobao.org

安装vue3.0

cnpm install -g @vue/cli

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/133852.html

(0)
飞熊的头像飞熊bm

相关推荐

发表回复

登录后才能评论
极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!