首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ng服务不适用于Windows10 (角-cli,节点6.3.0)

ng服务不适用于Windows10 (角-cli,节点6.3.0)
EN

Stack Overflow用户
提问于 2016-07-13 12:13:29
回答 1查看 1.2K关注 0票数 0

下面是关于https://cli.angular.io/的最简单的教程

代码语言:javascript
复制
ng new my-app
cd my-app
ng serve

我收到以下错误

代码语言:javascript
复制
(node:5888) fs: re-evaluating native module sources is not supported. 
If you are using the graceful-fs module, please update it to a more recent version.
You have to be inside an angular-cli project in order to use the serve command.

消息“您必须在一个角-cli项目中才能使用serve命令”。是用红色写的,所以这不是警告

节点、npm和优美-fs是目前最新的版本。

代码语言:javascript
复制
>ng version
(node:7288) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
angular-cli: 1.0.0-beta.9
node: 6.3.0
os: win32 x64

除了在mac/linux上做这件事之外,还有什么想法吗?

更新:解决方案是安装NVM并安装node.js版本5.12.0 (或任何5.x版本)

代码语言:javascript
复制
nvm install 5.12.0
nvm use 5.12.0
npm install -g angular-cli
npm install -g typescript

在重新做完教程之后,一切都很好。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-07-13 12:40:03

节点v6在许多包中仍然不受支持。考虑回到v5。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38351439

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档