Comments (5)
The above output shows your version:
2 info using [email protected]
3 info using [email protected]
As stated in the course, you need at least npm v3 ... but newer would be better. (I'm using npm 4.1.2) Please install the current versions of node and npm and try again.
from angular-gettingstarted.
Can you help about this error?
superuser:Hamed-MBP APM $ sudo npm start
[email protected] start /Users/superuser/APM
ng serve -o
Cannot read property 'config' of null
TypeError: Cannot read property 'config' of null
at Class.run (/Users/superuser/APM/node_modules/@angular/cli/tasks/serve.js:21:63)
at check_port_1.checkPort.then.port (/Users/superuser/APM/node_modules/@angular/cli/commands/serve.js:110:26)
at process._tickCallback (internal/process/next_tick.js:109:7)
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/superuser/.nvm/versions/node/v6.11.2/bin/node" "/Users/superuser/.nvm/versions/node/v6.11.2/bin/npm" "start"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: ng serve -o
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'ng serve -o'.
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 apm package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ng serve -o
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs apm
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls apm
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/superuser/APM/npm-debug.log
from angular-gettingstarted.
There are several things that can cause this error as discussed here: angular/angular-cli#4736
The most common are an older version of the CLI or a problem with the CLI configuration file. Are you running this from the folder containing the angular cli config? Did you run npm install
first without any errors?
from angular-gettingstarted.
Hi Deborah,
I am getting the below error when trying to preform npm start
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 info start [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec start script
9 verbose stack Error: [email protected] start: ng serve -o
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:217:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:829:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid [email protected]
11 verbose cwd C:\Users\naser.m.barcham\Documents\Projects\Angular-GettingStarted-master\APM
12 error Windows_NT 10.0.14393
13 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
14 error node v4.6.0
15 error npm v2.15.9
16 error code ELIFECYCLE
17 error [email protected] start: ng serve -o
17 error Exit status 1
18 error Failed at the [email protected] start script 'ng serve -o'.
18 error This is most likely a problem with the apm package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error ng serve -o
18 error You can get information on how to open an issue for this project with:
18 error npm bugs apm
18 error Or if that isn't available, you can get their info via:
18 error
18 error npm owner ls apm
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
not sure why I do have the latest versions installed
from angular-gettingstarted.
From the Angular CLI docs:
Both the CLI and generated project have dependencies that require Node 6.9.0 or higher, together with NPM 3 or higher.
From your error message above:
2 info using [email protected]
3 info using [email protected]
Update your node and npm as shown in the course and try again.
from angular-gettingstarted.
Related Issues (20)
- Cannot run APM-Start HOT 2
- Exception while running [email protected] similiar to Issue 129 HOT 8
- Question: How can implement pagination? HOT 1
- Codesandbox.io Can't resolve all parameters for ProductListComponent: (?). HOT 4
- id issue HOT 1
- request to http://registry.npmjs.org/@angular-devkit%2fbuild-angular failed, reason: connect ECONNREFUSED 127.0.0.1:4200 HOT 12
- "Unable to resolve dependency tree" error during NPM install of APM-Start HOT 31
- Add a simple html page for product display HOT 1
- npm install not working HOT 3
- Angular npm start error HOT 2
- I think the course is missing explanation on the #variable in templates HOT 1
- I made the API for fetching data from back end service using Asp.net Core 5.0 HOT 1
- When creating a new project I get this error HOT 3
- Npm Err! code ELIFECYCLE When Npm Install , Also when running npm start ( Ionic Angular Project ) HOT 1
- Images not displaying on the initial setup thro Pluralsight HOT 2
- Blank Screen HOT 2
- Npr Errr HOT 7
- npm install --dev css-loader style-loader
- Unable to resolve "Conflicting peer dependencies" HOT 2
- Error in building an angular app. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-gettingstarted.