Comments (8)
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.
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]prestart: no script for prestart, continuing
6 silly lifecycle [email protected]
7 info lifecycle [email protected]start: [email protected]start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
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/binstart: CWD: /Users/remo/Projects/dashboard/APM-Start
10 verbose lifecycle [email protected]
11 silly lifecycle [email protected]start: Args: [ '-c', 'tsc && concurrently "tsc -w" "lite-server" ' ]start: Returned: code: 2 signal: null
12 silly lifecycle [email protected]
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.
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.
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.
Hi @DeborahK , and also where can I change the default port number for the application?
from angular-gettingstarted.
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.
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.
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)
- 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 3
- 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.