Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

创建新项目报错Error: EACCES: permission denied #17

Open
xmabul opened this issue Sep 28, 2018 · 5 comments
Open

创建新项目报错Error: EACCES: permission denied #17

xmabul opened this issue Sep 28, 2018 · 5 comments
Labels
已解决 参与者已经有了共识,愿意参与的可继续提问 讨论 欢迎大家继续参与讨论,征集各方面的观点

Comments

@xmabul
Copy link

xmabul commented Sep 28, 2018

已跟着步骤安装完node.js和npm
npm install -g @angular/cli也安装成功:
Angular CLI: 6.2.3
Node: 8.12.0
OS: linux x64
但是,跟着要创建新项目的时候ng new my-app报错了。。
image
image

@asnowwolf
Copy link
Contributor

@xmabul
建议使用 https://github.com/creationix/nvm 把 nodejs 安装到当前用户下。默认的 node 安装方式是安装到根目录下的。

@xmabul
Copy link
Author

xmabul commented Sep 29, 2018

@asnowwolf
image
重新用nvm装nodejs也是一样报上面的错,难道是我angular cli版本问题吗

@asnowwolf
Copy link
Contributor

这个提示看着应该是环境问题,不像 cli 问题。
好像是你这个目录的权限问题。为什么会放在 /home/my-app 目录下呢?正常应该是位于你的个人目录下。

@asnowwolf asnowwolf added the 讨论 欢迎大家继续参与讨论,征集各方面的观点 label Oct 8, 2018
@SmallProgramIndustry
Copy link

你把node环境换成最新版本就可以了V10以上 @xmabul

@xmabul xmabul closed this as completed Oct 11, 2018
@asnowwolf
Copy link
Contributor

@xmabul 不要关闭问题,以方便别人搜索,回复一下我标记为已解决即可。这里关闭的都是无效问题。

@asnowwolf asnowwolf reopened this Oct 11, 2018
@asnowwolf asnowwolf added the 已解决 参与者已经有了共识,愿意参与的可继续提问 label Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
已解决 参与者已经有了共识,愿意参与的可继续提问 讨论 欢迎大家继续参与讨论,征集各方面的观点
Projects
None yet
Development

No branches or pull requests

3 participants