我剛剛創建了我的第一個jhipster應用程序,並按照如何設置我的IDE(eclipse)的說明進行操作。爲什麼新創建的Jhipster項目的身高= 0?
之後,我運行gradle bootRun任務(在eclipse中),一切都很順利。
當我訪問本地主機地址時,頁面是空白的。在firefox(f12)中調查問題,它顯示身體的高度爲0.
在嘗試手動拉伸html主體後,通過在index.html文件中手動將其高度設置爲100vt,再次調查通過f12顯示,新設置已應用(現在的高度爲100vt),但頁面仍然是空白的。
可能是什麼問題?我已經確認,所有需要的文件存在,所以它不能是文件未找到問題
有趣的是,該頁面的名稱顯示在選項卡中。由於名稱是在index.html頭文件中定義的,因此文件必須正確部署,但生成的部分中必須存在某種問題。
編輯
運行yarn run webpack:build
yarn run v0.23.2
$ yarn run cleanup && yarn run webpack:build:vendor && yarn run webpack:build:dev
yarn run v0.23.2
$ rimraf build/{aot,www}
The command "rimraf" is either spelled incorrectly or could not be found
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
EDIT 2
正如在評論中提到一個人,我可能要運行yarn install
,但是這給了我下面的錯誤,我根本不懂...
error C:\CUBE\workspace\cube\node_modules\generator-jhipster: Command failed.
Exit code: 1
Command: C:\WINDOWS\system32\cmd.exe
Arguments: /d /s /c tabtab install --name jhipster --auto
Directory: C:\CUBE\workspace\cube\node_modules\generator-jhipster
Output:
Fri, 30 Jun 2017 14:40:09 GMT tabtab:installer Installing completion script to fish directory
fs.js:641
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open 'C:\CUBE\workspace\cube\node_modules\tabtab\scripts\C:\Program Files\Git\usr\bin\bash.sh'
at Error (native)
at Object.fs.openSync (fs.js:641:18)
at fs.readFileSync (fs.js:509:33)
at Complete.script (C:\CUBE\workspace\cube\node_modules\tabtab\src\complete.js:373:14)
at Installer.writeTo (C:\CUBE\workspace\cube\node_modules\tabtab\src\installer.js:91:34)
at Installer.handle (C:\CUBE\workspace\cube\node_modules\tabtab\src\installer.js:80:21)
at Commands.install (C:\CUBE\workspace\cube\node_modules\tabtab\src\commands\index.js:75:22)
at Object.<anonymous> (C:\CUBE\workspace\cube\node_modules\tabtab\src\cli.js:33:16)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
'C:\ CUBE \工作區\立方\ node_modules \ tabtab \腳本\ C:\ Program Files文件\的Git的\ usr \ bin \ bash.sh'不是一個有效的目錄。有些東西在你的配置上搞砸了。這就是爲什麼'紗線安裝'不起作用。 – Nico
@Nico我可以想象,但我沒有在任何地方輸入此路徑,多數民衆贊成在問題......該路徑生成某種方式 –