cost 321 ms
運行Grunt Express Server會導致錯誤:ENOENT:沒有此類文件或目錄,請打開“ static / test.json”

[英]Running Grunt Express Server causes Error: ENOENT: no such file or directory, open 'static/test.json'

我有一個當前應用程序,正在更新以使用Express Node.js庫。 我已經更新了Grunt.js任務以使用grunt-express-server軟件包。 我的部分代碼嘗試訪問JSON文件的內容(請參見下面的目錄結構)。 它可以很好地運行服務器,但是當我嘗試訪問任何靜態文件時,出現以下 ...


排序:
質量:
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM