- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
Node/NPM 版本:
Node :v5.4.0,npm:3.3.12
我正在尝试按照 angular2 网站上的快速入门教程学习 Angular2。
这是我的 package.json 文件(与教程中的完全相同)。
{
"name": "angular2-quickstart",
"version": "1.0.0",
"scripts": {
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"start": "concurrent \"npm run tsc:w\" \"npm run lite\" "
},
"license": "ISC",
"dependencies": {
"angular2": "2.0.0-beta.0",
"systemjs": "0.19.6",
"es6-promise": "^3.0.2",
"es6-shim": "^0.33.3",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.0",
"zone.js": "0.5.10"
},
"devDependencies": {
"concurrently": "^1.0.0",
"lite-server": "^1.3.1",
"typescript": "^1.7.3"
}
当我运行 npm install 时,npm 会在 node_modules 文件夹中安装超过 90MB 的模块(几百个独立的模块)。
应该有这么多依赖吗?我觉得这太过分了,一定是出了什么问题。有什么建议或有人经历过类似的行为吗?
NPM 安装没有抛出任何错误。
该应用程序运行良好,但我无法找到有关该应用程序所有必需的 node_modules 的任何信息。谢谢。
最佳答案
其实并不是所有的都是必要的。
例如:
"devDependencies": {
"concurrently": "^1.0.0",
"lite-server": "^1.3.1",
"typescript": "^1.7.3"
}
typescript的模块可以去掉,但是据我所知,angular2建议把代码写成typescript,更安全和强类型。你也可以使用js或coffeescript,这不是什么大不了的。
最重要的模块是
"angular2": "2.0.0-beta.0",
"es6-promise": "^3.0.2",
"es6-shim": "^0.33.3",
ng2 就在 es6 之下,所以你需要“es6-xxxx”。
我认为这些模块不会占用 90MB 空间,但 NPM 总是在两个模块之间安装一些相同的子模块。不知道这个问题有没有处理(好像没有)。
关于node.js - 在 angular2 quickstart 中安装 npm 的 Node 模块过多,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34646600/
我是 Docker 和 Hadoop 系统的新手。我已经在 Ubuntu 16.04 中安装了 Docker,并在一个新的 Docker 容器中运行来自 Cloudera 的 Hadoop 镜像。但是
我正在尝试使用电子邮件和密码使用 Firebase 身份验证的示例代码: EmailPasswordActivity.java ,我得到一个“Cannot resolve symbol 'quicks
我试图使用以下命令停止运行cloudera/quickstart的容器 docker stop [container] 但它并没有停止,而且会永远持续下去(什么也没有发生)。如果我尝试使用删除它也会发
我是Hadoop的新手,并且使用cloudera quickstart vm(版本:Cloudera Standard 4.7.2)熟悉Hadoop。我已经将Java MRJ编译为Java 1.7,c
帮助我解决以下问题。 当我尝试使用location关键字在 hive 中创建新表时,出现以下错误。请帮我 hive> create table employee2(empid int, empname
我已在 Windows 8 主机上安装了 Cloudera Quickstart VM。我想知道是否可以在VM中使用sqoop从主机中运行的mysql数据库导入数据。VM运行centOS。如果是这样,
我希望实现 this type我的应用程序的 float 操作按钮的入门指南。是否有解释如何实现此功能的预定义模板或示例代码?我找不到任何代码示例,只有 Material Design Do/Don'
尝试学习 Angular,所以我从他们网站 ( https://angular.io/guide/quickstart ) 中的 TypeScript 快速入门教程开始 我正在使用 ubuntu 14
当发布候选版本发布时,我正在尝试浏览 Angular2 的快速入门。然而, typescript 编译器抛出了很多我无法弄清楚的错误。 https://angular.io/guide/quickst
我正在尝试启动并运行 angular2 quickstart 应用程序,但在运行 gulp 命令时遇到错误。 我有 ubuntu 15.04。我安装了 nodejs v0.10.25 和 npm 1.
问题 我正在尝试完成MongoDB on AWS quickstart创建一个简单的 MongoDB 集群。不幸的是,它从未完成部署,在一小时内未完成最后一个安装部分(PrimaryReplicaNo
第一次尝试使用干净的 Sphinx 1.1.3 安装来使用 Sphinx,但 shinx-quickstart 失败了。是否应该安装任何依赖项?我尝试 pip --force-reinstall sp
在kudu官方网站上检查后,我得到了一些说明,以下载kudu virtualbox镜像并安装vm。但是该存储库不再可用。 还有其他方法可以获取Kudu quickstart vm吗? 最佳答案 最后,
我正在Windows 10上使用docker,并且正在使用bash命令访问容器中的文件。 我将要搜索的文件本地化,需要在代码中更改一行,但是我不知道如何访问该脚本来对其进行编辑。 “cat”和“les
即使看了教程,我也不是很清楚架构。我们如何在分布式环境中扩展流集?比方说,我们的输入数据速度从源开始增加,那么如何确保 SDC 不会出现性能问题?将运行多少守护进程?是 Master worker 架
当我跑 sphinx-quickstart ,它问了我一堆问题。 > Root path for the documentation [.]: > Separate source and build
我正在尝试使用 cloudera quickstart vm 的配置单元 CLI 在配置单元中创建一个表。该命令被卡住,甚至在很长一段时间后也没有发生任何事情。我错过了什么吗?如果有人可以为此提供帮助
我正在按照英雄之旅教程构建我的第一个应用程序。我编写了一个组件文件 threads.component.ts,如下所示: @Component({ moduleId: module.id,
我是 TurboGears 的新手,刚刚在虚拟环境中安装了 TG2 开发。我正在关注 quickstart guide , 并通过 成功构建了一个 helloworld paster quicksta
我正在尝试使用 this 在 openshift 上设置 plone指南,在 window 上。我在 openshift quickstart guide 之后有 git 和 rhc .但是,当我到达
我是一名优秀的程序员,十分优秀!