Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

module-10 - 'npm run api' return an error #6

Open
morwin10 opened this issue Aug 19, 2016 · 1 comment
Open

module-10 - 'npm run api' return an error #6

morwin10 opened this issue Aug 19, 2016 · 1 comment

Comments

@morwin10
Copy link

morwin10 commented Aug 19, 2016

I cloned a new project from :
[email protected]:AngularClass/retain-app.git

And i did all these commands :

npm install --global typescript webpack webpack-dev-server tslint
npm install
git checkout module-10

Added to package.json:
"api": "angularclass-server --api retain --port 3500"

npm install
And i get this errors:
https://gist.github.com/morwin10/ad977e66748e339dcbcf46705891e7a8

npm run api
And i get this errors:
https://gist.github.com/morwin10/4def17741c944a7074942b4a56482a2f

My package.json looks like this:

{
  "name": "retain",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "webpack --config webpack.spec.ts --progress --color && karma start",
    "start": "webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 3000  --content-base src",
    "api": "angularclass-server --api retain --port 3500"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@angular/common": "2.0.0-rc.4",
    "@angular/compiler": "2.0.0-rc.4",
    "@angular/core": "2.0.0-rc.4",
    "@angular/forms": "^0.2.0",
    "@angular/http": "2.0.0-rc.4",
    "@angular/platform-browser": "2.0.0-rc.4",
    "@angular/platform-browser-dynamic": "2.0.0-rc.4",
    "@angular/router": "3.0.0-beta.2",
    "@angularclass/api": "^1.1.8",
    "core-js": "^2.4.0",
    "lodash": "^4.13.1",
    "rxjs": "5.0.0-beta.6",
    "zone.js": "^0.6.12"
  },
  "devDependencies": {
    "awesome-typescript-loader": "1.0",
    "css-loader": "^0.23.1",
    "jasmine-core": "^2.4.1",
    "karma": "^1.1.1",
    "karma-chrome-launcher": "^1.0.1",
    "karma-jasmine": "^1.0.2",
    "karma-mocha-reporter": "^2.0.4",
    "raw-loader": "^0.5.1",
    "to-string-loader": "^1.1.4",
    "ts-helpers": "^1.1.1",
    "typescript": "^1.8.10",
    "webpack": "^1.13.1",
    "webpack-dev-server": "^1.14.1"
  }
}

How can i solved this ?

npm-debug.log:
https://gist.github.com/morwin10/cef2bed3b1e85d18d2d2618556de4523

My system:
Windows 7 ultimate 64bit
node v6.4.0
npm v3.10.6

@martinlaws
Copy link

Hey there, npm run api cannot run without a successful npm install, which is where your problem is right now. The npm install error that you're seeing looks like it's being thrown because you don't have python on your machine - try installing python via the command line, then try to run npm install again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants