Giter Site home page Giter Site logo

Comments (5)

DeborahK avatar DeborahK commented on May 26, 2024

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.

dastangoo avatar dastangoo commented on May 26, 2024

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.

DeborahK avatar DeborahK commented on May 26, 2024

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.

nbarcham avatar nbarcham commented on May 26, 2024

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.

DeborahK avatar DeborahK commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.