Giter VIP home page Giter VIP logo

Comments (14)

Bioninja01 avatar Bioninja01 commented on August 16, 2024 8

I found a solution. In the tsconfig.json file change
"target": "es5", -> "target": "es6",
This got it to work for me.

from angular2-essential-training.

jschwarty avatar jschwarty commented on August 16, 2024 1

@GlenQu Can you try the following and let me know if that fixes it:

  1. Update the @types in the devDependencies to not have carets:
"@types/core-js": "0.9.34",
"@types/node": "6.0.41",
  1. Delete the node_modules directory
  2. Run npm cache clean
  3. Run npm install

from angular2-essential-training.

danathurston avatar danathurston commented on August 16, 2024

Does the local git repository have to be in my MAMP folder?

from angular2-essential-training.

danathurston avatar danathurston commented on August 16, 2024

screen shot 2016-11-17 at 12 26 00 pm

from angular2-essential-training.

konstantp avatar konstantp commented on August 16, 2024

@danathurston have you solved npm start issue?

from angular2-essential-training.

Bioninja01 avatar Bioninja01 commented on August 16, 2024

@konstantp I am having the same issue. Did you find a solution to the problem

from angular2-essential-training.

danathurston avatar danathurston commented on August 16, 2024

from angular2-essential-training.

konstantp avatar konstantp commented on August 16, 2024

Thanks @Bioninja01! It works!

from angular2-essential-training.

palavi avatar palavi commented on August 16, 2024

It worked for me too. Thanks @Bioninja01

from angular2-essential-training.

GlenQu avatar GlenQu commented on August 16, 2024

Tried changing the target but still no joy for me. Upgraded Node and NPM. Any other solutions?

0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Users\\gquinn\\AppData\\Roaming\\npm\\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 lifecycle [email protected]~prestart: [email protected] 6 verbose lifecycle [email protected]~prestart: unsafe-perm in lifecycle true 7 verbose lifecycle [email protected]~prestart: PATH: C:\Users\gquinn\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\gquinn\WebstormProjects\angular2-essential-training\node_modules\.bin;C:\oraclexe\app\oracle\product\11.2.0\server\bin;;C:\Program Files\Java\jdk1.8.0_101\bin;C:\dev\tools\apache-maven-3.3.9\bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\CapgeminiScripts\Support Tools\;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;C:\Users\gquinn\AppData\Local\GitHub\PortableGit_624c8416ee51e205b3f892d1d904e06e6f3c57c8\cmd\git.exe;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files\Cloud Foundry;C:\Program Files\MongoDB\Server\3.4\bin;C:\Program Files\nodejs\;C:\Program Files\Java\jre1.8.0_101\bin;C:\Users\gquinn\AppData\Roaming\Composer\vendor\bin;C:\xammp\php\;C:\Users\gquinn\AppData\Roaming\npm 8 verbose lifecycle [email protected]~prestart: CWD: C:\Users\gquinn\WebstormProjects\angular2-essential-training 9 silly lifecycle [email protected]~prestart: Args: [ '/d /s /c', 'npm run clean' ] 10 silly lifecycle [email protected]~prestart: Returned: code: 7 signal: null 11 info lifecycle [email protected]~prestart: Failed to exec prestart script 12 verbose stack Error: [email protected] prestart: npm run clean12 verbose stack Exit status 7 12 verbose stack at EventEmitter.<anonymous> (C:\Users\gquinn\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:279:16) 12 verbose stack at emitTwo (events.js:106:13) 12 verbose stack at EventEmitter.emit (events.js:191:7) 12 verbose stack at ChildProcess.<anonymous> (C:\Users\gquinn\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14) 12 verbose stack at emitTwo (events.js:106:13) 12 verbose stack at ChildProcess.emit (events.js:191:7) 12 verbose stack at maybeClose (internal/child_process.js:886:16) 12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 13 verbose pkgid [email protected] 14 verbose cwd C:\Users\gquinn\WebstormProjects\angular2-essential-training 15 verbose Windows_NT 6.1.7601 16 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gquinn\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start" 17 verbose node v6.10.3 18 verbose npm v4.5.0 19 error code ELIFECYCLE 20 error errno 7 21 error [email protected] prestart:npm run clean 21 error Exit status 7 22 error Failed at the [email protected] prestart script 'npm run clean'. 22 error Make sure you have the latest version of node.js and npm installed. 22 error If you do, this is most likely a problem with the angular2-essential-training package, 22 error not with npm itself. 22 error Tell the author that this fails on your system: 22 error npm run clean 22 error You can get information on how to open an issue for this project with: 22 error npm bugs angular2-essential-training 22 error Or if that isn't available, you can get their info via: 22 error npm owner ls angular2-essential-training 22 error There is likely additional logging output above. 23 verbose exit [ 7, true ]

Would appreciated any advice to go forward.

from angular2-essential-training.

jschwarty avatar jschwarty commented on August 16, 2024

@GlenQu Can you post your package.json file so I can take a look at it?

from angular2-essential-training.

GlenQu avatar GlenQu commented on August 16, 2024

Sure.

{
  "name": "angular2-essential-training",
  "version": "1.0.0",
  "author": "Justin Schwartzenberger",
  "description": "This project is the repository for my Angular 2 Essential Training course on Lynda.com.",
  "repository": {
    "type": "git",
    "url": "https://github.com/LyndaExerciseFiles/angular2-essential-training.git"
  },
  "scripts": {
    "clean": "rimraf app/**/*.js app/**/*.js.map",
    "tsc": "tsc",
    "tsc:w": "tsc -w",
    "lite": "lite-server",
    "prestart": "npm run clean",
    "start": "tsc && concurrently \"tsc -w\" \"lite-server\" "
  },
  "dependencies": {
    "@angular/common": "2.0.0",
    "@angular/compiler": "2.0.0",
    "@angular/core": "2.0.0",
    "@angular/forms": "2.0.0",
    "@angular/http": "2.0.0",
    "@angular/platform-browser": "2.0.0",
    "@angular/platform-browser-dynamic": "2.0.0",
    "@angular/router": "3.0.0",
    "systemjs": "0.19.27",
    "core-js": "2.4.1",
    "reflect-metadata": "0.1.3",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "0.6.23"
  },
  "devDependencies": {
    "@types/core-js": "^0.9.34",
    "@types/node": "^6.0.41",
    "concurrently": "2.2.0",
    "lite-server": "2.2.2",
    "rimraf": "2.5.4",
    "typescript": "2.0.2"
  }
}

from angular2-essential-training.

GlenQu avatar GlenQu commented on August 16, 2024

Hi Justin,

Followed the steps you outlined above but still no joy. I am getting the same error. I appreciate your help on this.

from angular2-essential-training.

GlenQu avatar GlenQu commented on August 16, 2024

Got it working. Now I tried multiple things to get it working. I think ultimately I had to reinstall brackets (which I had uninstalled) then reconfigure the npmrc file.

On the npmrc file I changed my editor variable to use forward slashes instead of backslashes. Restarted cmd and "npm start" worked.

from angular2-essential-training.

Related Issues (5)

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.