window 安装node 运行报错C:\Windows\system32\cmd.exe;C:\Windows\system32;

博客介绍了Win10系统环境变量处理,需去掉ComSpec环境变量,其与cmd指令执行器路径相关,还给出了该变量的具体内容。同时提到工程处理,要删除package - lock.json和node_modules文件后重新install。
部署运行你感兴趣的模型镜像
wanyi@DESKTOP-QG5SLAM MINGW64 /d/sourceCode/vue-paas-master/vue-pass (master)
$ npm run build

> vue-pass@1.0.0 build D:\sourceCode\vue-paas-master\vue-pass
> node build/build.js

npm ERR! file C:\Windows\system32\cmd.exe;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\SysWOW64
npm ERR! path C:\Windows\system32\cmd.exe;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\SysWOW64
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\Windows\system32\cmd.exe;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\SysWOW64
npm ERR! vue-pass@1.0.0 build: `node build/build.js`
npm ERR! spawn C:\Windows\system32\cmd.exe;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\SysWOW64 ENOENT
npm ERR!
npm ERR! Failed at the vue-pass@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\wanyi\AppData\Roaming\npm-cache\_logs\2019-04-18T11_34_30_486Z-debug.log

将系统环境变量ComSpec 去掉,这个环境变量是关于window相关的cmd 指令执行器路径相关的

win10  ComSpec  = %SystemRoot%\system32\cmd.exe; C:\Windows\SysWOW64; %SystemRoot%\System32\Wbem;
%SystemRoot%;%SystemRoot%\system32

删除工程中package-lock.json 和node_modules 重新install 

 

 

您可能感兴趣的与本文相关的镜像

Wan2.2-T2V-A5B

Wan2.2-T2V-A5B

文生视频
Wan2.2

Wan2.2是由通义万相开源高效文本到视频生成模型,是有​50亿参数的轻量级视频生成模型,专为快速内容创作优化。支持480P视频生成,具备优秀的时序连贯性和运动推理能力

应用程序: vs_setup_bootstrapper.exe Framework 版本: v4.0.30319 说明: 由于未经处理的异常,进程终止。 异常信息: System.TypeLoadException 在 System.Windows.Automation.Peers.AutomationPeer.Initialize() 在 System.Windows.Automation.Peers.AutomationPeer..cctor() 异常信息: System.TypeInitializationException 在 System.Windows.Automation.Peers.AutomationPeer.RaiseFocusChangedEventHelper(System.Windows.IInputElement) 在 System.Windows.Input.KeyboardDevice.ChangeFocus(System.Windows.DependencyObject, Int32) 在 System.Windows.Input.KeyboardDevice.TryChangeFocus(System.Windows.DependencyObject, System.Windows.Input.IKeyboardInputProvider, Boolean, Boolean, Boolean) 在 System.Windows.Input.KeyboardDevice.Focus(System.Windows.DependencyObject, Boolean, Boolean, Boolean) 在 System.Windows.Input.KeyboardDevice.Focus(System.Windows.IInputElement) 在 System.Windows.Interop.HwndKeyboardInputProvider.OnSetFocus(IntPtr) 在 System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef) 在 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) 在 MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) 在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
最新发布
11-07
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值