下面是关于https://cli.angular.io/的最简单的教程
ng new my-app
cd my-app
ng serve我收到以下错误
(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是目前最新的版本。
>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版本)
nvm install 5.12.0
nvm use 5.12.0
npm install -g angular-cli
npm install -g typescript在重新做完教程之后,一切都很好。
发布于 2016-07-13 12:40:03
节点v6在许多包中仍然不受支持。考虑回到v5。
https://stackoverflow.com/questions/38351439
复制相似问题