![](/img/trans.png)
[英]Unable to verify the first certificate when ionic start using command prompt
[英]Unable to find ng command for ionic v4 but otherwise ok when using ionic v6
我在使用 Volta 管理不同版本節點的 Windows 機器上。
我在 2 個不同的文件夾中有 2 個不同的 ionic 應用程序,有 2 個不同版本的 ionic。
在 1 個文件夾中,我能夠運行ionic serve
並且該應用程序在瀏覽器中提供。 在這個文件夾中,這些是我的價值觀。
npm --version
6.14.11
node --version
v14.15.5
ionic --version
6.13.1
ng --version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 11.2.6
Node: 14.15.5
OS: win32 x64
Angular: 11.2.7
... common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1102.6
@angular-devkit/build-angular 0.1102.6
@angular-devkit/core 11.2.6
@angular-devkit/schematics 11.2.6
@angular/cli 11.2.6
@schematics/angular 11.2.6
@schematics/update 0.1102.6
rxjs 6.6.7
typescript 4.0.7
這些是命令的 gcm 值:
gcm ionic
CommandType Name Version Source
----------- ---- ------- ------
Application ionic.exe 0.0.0.0 C:\Users\user\AppData\Local\Volta\bin\ionic.exe
gcm npm
CommandType Name Version Source
----------- ---- ------- ------
Application npm.exe 0.0.0.0 C:\Program Files\Volta\npm.exe
gcm node
CommandType Name Version Source
----------- ---- ------- ------
Application node.exe 0.0.0.0 C:\Program Files\Volta\node.exe
gcm ng
CommandType Name Version Source
----------- ---- ------- ------
Application ng.exe 0.0.0.0 C:\Users\user\AppData\Local\Volta\bin\ng.exe
但是在另一個文件夾中,我的 ionic 命令似乎找不到ng
。 這就是我使用ionic serve
時得到的
[ng] Volta error: Could not locate executable `ng` in your project.
這些是我的價值觀:
npm --version
6.14.11
node --version
v14.15.5
ionic --version
4.12.0
ng --version
Volta error: Could not locate executable `ng` in your project.
這里可能缺少什么?
gcm ionic
CommandType Name Version Source
----------- ---- ------- ------
Application ionic.exe 0.0.0.0 C:\Users\user\AppData\Local\Volta\bin\ionic.exe
gcm ng
CommandType Name Version Source
----------- ---- ------- ------
Application ng.exe 0.0.0.0 C:\Users\user\AppData\Local\Volta\bin\ng.exe
阻止 ionic v4 查找 ng 可執行文件的問題可能是什么?
問題是該項目位於 exFAT 磁盤上。 將項目移動到 NTFS 磁盤並再次運行安裝即可。 該問題不再在 NTFS 磁盤上重現。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.