我的构建服务器编译一个angular应用程序一直运行得很好,直到昨天早上我开始收到这个错误:
npm ERR! Invalid version: "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz"
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\svc-pliska\AppData\Roaming\npm-cache\_logs\2017-12-15T16_1
7_08_060Z-debu
最近我遇到了一个问题,我们在构建管道yaml脚本中使用了"npm run build“命令。然后是'base-href','configuration‘等参数。构建通过了,部署是成功的,但当我们测试应用程序时,它不会呈现页面,但控制台将出现以下或类似的错误。 Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for modu
我运行了以下命令:npm i -g angular-cli-ghpages
之后,我运行了以下命令:ng github-pages:deploy
为什么我总是收到以下消息:
The specified command github-pages:deploy is invalid. For available options, see `ng help`.
如何在构建时设置基本的href?我试过了
--base-href /path/
--base-href=/path/
--base-href="/path/"
--base-href='/path/'
而且没有一种能起作用
它一直告诉我base-href should start and end with /