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:/
相关文章
相关标签/搜索