GithubHelp home page GithubHelp logo

Comments (8)

kweeket avatar kweeket commented on August 27, 2024 2

What worked for me was to change the start field in package.json from

"start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" "
to

"start": "concurrently \"npm run tsc:w\" \"npm run lite\" "

(source: http://stackoverflow.com/questions/34335340/angular2-quickstart-npm-start-is-not-working-correctly)

from angular-gettingstarted.

smart987 avatar smart987 commented on August 27, 2024

Even with ACM-Start also the same problem, please find the below, npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]
6 silly lifecycle [email protected]
prestart: no script for prestart, continuing
7 info lifecycle [email protected]start: [email protected]
8 verbose lifecycle [email protected]
start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/remo/Projects/dashboard/APM-Start/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
10 verbose lifecycle [email protected]
start: CWD: /Users/remo/Projects/dashboard/APM-Start
11 silly lifecycle [email protected]start: Args: [ '-c', 'tsc && concurrently "tsc -w" "lite-server" ' ]
12 silly lifecycle [email protected]
start: Returned: code: 2 signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: tsc && concurrently "tsc -w" "lite-server"
14 verbose stack Exit status 2
14 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:885:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd /Users/remo/Projects/dashboard/APM-Start
17 error Darwin 15.2.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
19 error node v7.2.0
20 error npm v3.10.9
21 error code ELIFECYCLE
22 error [email protected] start: tsc && concurrently "tsc -w" "lite-server"
22 error Exit status 2
23 error Failed at the [email protected] start script 'tsc && concurrently "tsc -w" "lite-server" '.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the product-management package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error tsc && concurrently "tsc -w" "lite-server"
23 error You can get information on how to open an issue for this project with:
23 error npm bugs product-management
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls product-management
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

from angular-gettingstarted.

DeborahK avatar DeborahK commented on August 27, 2024

This looks like npm install did not finish successfully. Did you see any errors when running npm install? npm start won't work correctly unless npm install completed successfully.

from angular-gettingstarted.

smart987 avatar smart987 commented on August 27, 2024

Hi DeborahK, npm install went successfully without any errors and the log is below.

My node version -- v7.2.0 and npm version -- 3.10.9

sudo npm install
Password:
npm WARN deprecated [email protected]: use uuid module instead
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130

[email protected] install /Users/remo/Projects/Angular2/APMFinal/node_modules/fsevents
node-pre-gyp install --fallback-to-build

[fsevents] Success: "/Users/remo/Projects/Angular2/APMFinal/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node" is installed via remote
npm WARN lifecycle [email protected]~postinstall: cannot run in wd %s %s (wd=%s) [email protected] typings install /Users/remo/Projects/Angular2/APMFinal

from angular-gettingstarted.

smart987 avatar smart987 commented on August 27, 2024

Hi @DeborahK , and also where can I change the default port number for the application?

from angular-gettingstarted.

DeborahK avatar DeborahK commented on August 27, 2024

Since this is not an issue with this code, but rather the quickstart files, I'm closing this issue. We'll continue the conversation in the Discussion tab for the course.

from angular-gettingstarted.

avneetkhurana avatar avneetkhurana commented on August 27, 2024

Hi Deborah,

I also got the same issue as kweeket and was resolved with the same resolution as mentioned in her post.
Can you pls update the package.json on GitHub to include:
"start": "concurrently "npm run tsc:w" "npm run lite" "

Thanks..

from angular-gettingstarted.

DeborahK avatar DeborahK commented on August 27, 2024

Did you download the correct files? These files now use the Angular CLI for npm start and no longer use concurrently or tsc.

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.