[LUA ERROR] [string "require "src/main.lua""]:1: module 'src/main.lua' n

新建的空项目跑不起来 环境

CocosForWin-v2.2.6.exe
CocosFramework-v3.5.exe

安装目录 d:/cocos

14:01:53 Starting simulator…
14:01:56 Uploading resources …
14:01:56 Notifying simulator to start logic…
14:01:56 cocos2d: fullPathForFilename: No file found at config.json. Possible missing file.
14:01:56 SCREEN DPI = 96, SCREEN SCALE = 1.00
14:01:56 WORKAREA WIDTH 1912.00, HEIGHT 1000.00
14:01:56 FRAME SCALE = 1.00
14:01:56 Ready for GLSL
14:01:56 Ready for OpenGL 2.0
14:01:56 {
14:01:56 gl.version: 4.3.0
14:01:56 gl.supports_NPOT: true
14:01:57 cocos2d.x.version: cocos2d-x 3.6
14:01:57 cocos2d.x.compiled_with_profiler: false
14:01:57 cocos2d.x.build_type: DEBUG
14:01:57 cocos2d.x.compiled_with_gl_state_cache: true
14:01:57 gl.max_texture_size: 16384
14:01:57 gl.vendor: NVIDIA Corporation
14:01:57 gl.renderer: GeForce GTX 650/PCIe/SSE2
14:01:57 gl.max_texture_units: 192
14:01:57 gl.supports_ETC1: false
14:01:57 gl.supports_S3TC: true
14:01:57 gl.supports_ATITC: false
14:01:57 gl.supports_PVRTC: false
14:01:57 gl.supports_BGRA8888: false
14:01:57 gl.supports_discard_framebuffer: false
14:01:57 gl.supports_vertex_array_object: true
14:01:57 }
14:01:57 Project Config:
14:01:57 project dir: D:\Desktop\Demo
14:01:57 writable path: (PROJDIR)\ 14:01:57 script file: (PROJDIR)\src\main.lua
14:01:57 frame size: 800 x 480
14:01:57 frame scale: 1.00
14:01:57 show console: NO
14:01:57 write debug log: NO ()
14:01:57 listen:
14:01:57 debugger: Cocos Code IDE
14:01:57 add searching path:
14:01:57 Console: listening on 0.0.0.0 : 6050
14:01:57 Console: listening on 0.0.0.0 : 6060
14:01:57 JS: :0:can’t open : No such file or directory (show balloon)
14:01:57 JS: :0:undefined is not a function (show balloon)
14:01:57 iShow!
14:01:57 debug server : error creating/binding socket
14:01:57 debug args = require(‘debugger’)(‘127.0.0.1’,‘10000’,‘luaidekey’,nil,‘win’,’/Demo/’,’’)
14:01:57 Debugger v1.1.0
14:01:57 Debugger: Trying to connect to 127.0.0.1:10000 …
14:01:57 Debugger: Connection succeed.
14:01:57 can not get file data of D:/Desktop/Demo/src/src/main.lua
14:01:57 ERROR
:1: module ‘src/main.lua’ not found:
D:/Desktop/Demo/src/main.lua
14:01:57 no field package.preload’src/main.lua’]
14:01:57 no file ‘C:\Program Files (x86)\Lua\5.1’
14:01:57 no file ‘D:/Desktop/Demo/src/src/main\lua.lua’
14:01:57 no file ‘.\src/main\lua.dll’
14:01:57 no file ‘D:\Cocos\cocos-simulator-bin\win32\src/main\lua.dll’
14:01:57 no file ‘D:\Cocos\cocos-simulator-bin\win32\loadall.dll’
14:01:57 no file ‘.\src/main.dll’
14:01:57 no file ‘D:\Cocos\cocos-simulator-bin\win32\src/main.dll’
14:01:57 no file ‘D:\Cocos\cocos-simulator-bin\win32\loadall.dll’

没人遇到过?

main.lua前面没有加:
cc.FileUtils:getInstance():addSearchPath(“src”)
cc.FileUtils:getInstance():addSearchPath(“res”)