ng new hello错误:路径"/app/app.module.ts"不存在.路径"/app/app.module.ts"不存在 [英] ng new hello Error: Path "/app/app.module.ts" does not exist. Path "/app/app.module.ts" does not exist

查看:102
本文介绍了ng new hello错误:路径"/app/app.module.ts"不存在.路径"/app/app.module.ts"不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在创建新项目时遇到了问题. 当我执行ng new myapp命令时,得到以下命令

I am facing problem in creating new project in angular. When I run ng new myapp command I get following command

ng new hello

Error: Path "/app/app.module.ts" does not exist.
Path "/app/app.module.ts" does not exist.

有人可以帮我吗?

推荐答案

这是解决方案

Please make sure that your new folder have write permission   

如果您使用的是ubuntu,请在该文件夹中运行以下命令

if you are using ubuntu please run the command below to that folder

sudo chmod 644 -R foldername 

然后运行新的应用名称

还要检查您的节点版本

这篇关于ng new hello错误:路径"/app/app.module.ts"不存在.路径"/app/app.module.ts"不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆