加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

是什么原因npm ERR!写完了,当我创建一个Angular 4应用程序?

发布时间:2020-12-17 07:06:49 所属栏目:安全 来源:网络整理
导读:我在CLI模式下创建Angular 4应用程序时遇到错误. 我收到了这个错误 anjan@anjan-HP-Laptop-15-bs0xx:~/Desktop/angular$ng new a4appnpm ERR! write after end npm ERR! A complete log of this run can be found in:npm ERR! /home/anjan/.npm/_logs/2018-0
我在CLI模式下创建Angular 4应用程序时遇到错误.

我收到了这个错误

anjan@anjan-HP-Laptop-15-bs0xx:~/Desktop/angular$ng new a4app
npm ERR! write after end  
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/anjan/.npm/_logs/2018-04-13T04_48_09_522Z-debug.log

请给我一个适当的建议,以便我可以解决这个问题.

我的Angular配置

_                      _                 ____ _     ___
    /    _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △  | '_  / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ | | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   __| |_|__,|__,_|_|__,_|_|       ____|_____|___|
                |___/


Angular CLI: 6.0.0-rc.4
Node: 8.11.1
OS: linux x64
Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.5.6
@angular-devkit/core         0.5.6
@angular-devkit/schematics   0.5.6
@ngtools/json-schema         1.1.0
@schematics/angular          0.5.6
@schematics/update           0.5.6
rxjs                         6.0.0-turbo-rc.4
typescript                   2.7.2

解决方法

npm install -g npm@5.6.0

运行此命令后,我的问题就解决了.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读