【发布时间】:2017-10-08 11:01:52
【问题描述】:
当我尝试使用 Firebase 创建 Angular 2 项目时,我遇到了下一个问题。
当我输入“npm start”时
tester@0.0.0 start /home/leanvitale/Documents/Angular 2/Practicas/tester
enter code hereng serve
Environment configuration does not contain "environmentSource" entry.
A new environmentSource entry replaces the previous source entry inside environments.
To migrate angular-cli.json follow the example below:
Before:
"environments": {
"source": "environments/environment.ts",
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
After:
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
npm ERR! Linux 4.9.0-deepin4-amd64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tester@0.0.0 start: `ng serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tester@0.0.0 start script 'ng serve'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the tester package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ng serve
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs tester
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls tester
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/.npm/_logs/2017-05-09T23_48_40_960Z-debug.log
这是我的信息:
ng -v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
@angular/cli: 1.0.3
node: 7.10.0
os: linux x64
@angular/common: 2.4.10
@angular/compiler: 2.4.10
@angular/core: 2.4.10
@angular/forms: 2.4.10
@angular/http: 2.4.10
@angular/platform-browser: 2.4.10
@angular/platform-browser-dynamic: 2.4.10
@angular/router: 3.4.10
@angular/cli: 1.0.3
@angular/compiler-cli: 2.4.10
昨天我按照教程学习了使用 Angular 4 和 Firebase,我做了依赖项更新,并注意到几乎没有可用的文档,我决定从 Angular 2 和 Firebase 开始。问题是我对 node 和 npm 的版本很感兴趣,消毒和安装所有东西,我都错了,现在我无法在 Angular 2 中运行默认程序,我希望有人可以指导我卸载和安装一切 能够在 Angular 2 和 Firebase 中进行项目所需的一切。
有人指导我吗? 谢谢!!
【问题讨论】:
-
在你的问题本身中添加内容,你可以编辑一个问题&你现在有一个差异错误
标签: node.js angular firebase npm