ng new 創建新項目時報錯 verbose stack SyntaxError: Unexpected end of JSON input while parsing near 的解決方法

重新建立空項目:ng new 項目名稱 --skip-install 進入你的項目目錄:cd 項目名稱 重新設置鏈接:npm set registry https://registry.npmjs.org/ 重置cache:npm cache clean --force 安裝模塊包:npm install 如果失敗重新運行:4、5 啓動服務:ng serve 測試網頁:打開瀏覽器,輸入http:/
相關文章
相關標籤/搜索