If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your

3 篇文章 0 订阅
错误提示:If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encouter other issues

在这里插入图片描述

解决方法:

在这里插入图片描述
我们根据错误提示在 项目中创建一个 .env 的文件夹
里面的 内容写上 SKIP_PREFLIGHT_CHECK=true

再输入:

npm start
# -*- mode: python ; coding: utf-8 -*- import os currentUrl = os.path.abspath(os.path.join("__file__")) SETUP_DIR = os.path.dirname(currentUrl)+"\\" def findAllFilesWithSpecifiedSuffix(target_dir, target_suffix="py"): find_res = [] target_suffix_dot = "." + target_suffix walk_generator = os.walk(target_dir) for root_path, dirs, files in walk_generator: if len(files) < 1: continue for file in files: file_name, suffix_name = os.path.splitext(file) if suffix_name == target_suffix_dot: find_res.append(os.path.join(root_path, file)) return find_res py_files = findAllFilesWithSpecifiedSuffix(SETUP_DIR) block_cipher = None a = Analysis(py_files, pathex=[SETUP_DIR], binaries=[], datas=[(SETUP_DIR+'Json_File','Json_File'),(SETUP_DIR+'Remote_file','Remote_file')], hiddenimports=['pyttsx3','pyserial','opencv-python','pillow','openpyxl'], hookspath=[], hooksconfig={}, runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher, noarchive=False) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE(pyz, a.scripts, [], exclude_binaries=True, name='host_structure', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, console=False, disable_windowed_traceback=False, target_arch=None, codesign_identity=None, entitlements_file=None) coll = COLLECT(exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=True, upx_exclude=[], name='TCLtester')报错:ValueError: the environment variable is longer than 32767 characters
最新发布
06-07
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值