npm install react-router 在存储库中缺少示例文件夹?

npm install react-router missing examples folder in repository?

当 运行 npm install react-router 时,它会安装包含 examples 文件夹的 react-router v1.0.3。然而在运行

之后
cd node_modules/react-router
ls

输出是

CHANGES.md          README.md           es6                 npm-scripts
CONTRIBUTING.md     SPONSORS.md         lib                 package.json
LICENSE.md          docs                node_modules        umd

缺少 examples 文件夹!如何从 npm 获取 examples

你不知道。

当通过 NPM 分发包时,开发人员可以选择包含哪些内容。由于包旨在用作 依赖项 ,很多东西通常被排除在外。

这是由 files property in package.json (and in an .npmignore file). If you look here 控制的,您可以看到他们没有将 examples 包含在 NPM 分发中。

也就是说,NPM 不是示例代码的好工具,但 GitHub 是。为什么不从那里获取示例?