angular2项目下载后运行以及报错,The "@angular/compiler-cli" package was not properly installed
2017-08-16 10:24
661 查看
我喜欢直接给代码或者截图说明,所有的口头上说的都是垃圾,解决不了问题
完整报错:The "@angular/compiler-cli" package was not properly installed. Error: Error: Canno
t find module '@angular/compiler-cli'
先说运行方法,当你在其他地方下载了项目源码后,直接运行ng serve 是不对的,还需要先下载npm,操作如下:
1.将你的项目放到你的目录文件下
2.然后在cmd下找到路径并下载所需要的东西
3.下载好以后,本以为可以运行,但是会报错。运行代码则是输入:ng serve --open
报错如下:
The "@angular/compiler-cli" package was not properly installed. Error: Error: Canno
t find module '@angular/compiler-cli'
解决方法:依次输入黄色部分代码
1.npm uninstall --save-dev angular-cli
完了之后继续输入下面代码
2.npm install --save-dev @angular/cli@latest
最后运行就行了。
如果你觉得帮助到了你,就给我随手点个赞吧
完整报错:The "@angular/compiler-cli" package was not properly installed. Error: Error: Canno
t find module '@angular/compiler-cli'
先说运行方法,当你在其他地方下载了项目源码后,直接运行ng serve 是不对的,还需要先下载npm,操作如下:
1.将你的项目放到你的目录文件下
2.然后在cmd下找到路径并下载所需要的东西
3.下载好以后,本以为可以运行,但是会报错。运行代码则是输入:ng serve --open
报错如下:
The "@angular/compiler-cli" package was not properly installed. Error: Error: Canno
t find module '@angular/compiler-cli'
解决方法:依次输入黄色部分代码
1.npm uninstall --save-dev angular-cli
完了之后继续输入下面代码
2.npm install --save-dev @angular/cli@latest
最后运行就行了。
如果你觉得帮助到了你,就给我随手点个赞吧
相关文章推荐
- Angular4.0 启动项目时,报错:The “@angular/compiler-cli” package was not properly installed
- Angular 中The “@angular/compiler-cli” package was not properly installed
- The LogManager was not properly installed (you must set the "java.util.logging.manager" system prop
- java compiler level does not match the version of the installed java project facet 项目导入报错解决
- Jboss:The LogManager was not properly installed (you must set the "java.util.logging.manager" system prop
- 项目名报错,Java compiler level does not match the version of the installed Java project facet.
- VS Code打开使用IDEA搭建的Spring Boot项目运行提示"snakeyaml was not found on the classpath"错误
- The project was not built due to "Could not delete /项目名/target/classes/
- eclipse 3.4.2创建完项目时。报错Project "HelloWorld” is missing required source folder: ‘gen’The project could not be built until buid pat
- 项目忽然出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法
- maven新建web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 问题:Eclipse新建web项目出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build P
- 项目忽然出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法
- 项目忽然出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法
- Eclipse中新建Maven Web项目报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 启动hive报错:("com.mysql.jdbc.Driver") was not found in the CLASSPATH
- 运行tomcat:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- angular-cli的安装 ng不是内部命令的解决方案以及在webstrom里面运行angular项目,血与泪的教训啊
- JavEE 报错compiler level does not match the version of the installed java project facet解决方法
- Eclipse运行Android项目提示sdk\build-tools\26.0.0\lib\dx.jar Unable to build: the file dx.jar was not loade