npm start Fails on command tsc -p src/
See original GitHub issueI’m working with:
node -v v7.10.0
npm -v 4.2.0
I execute next commands
git clone https://github.com/angular/quickstart.git quickstart
cd quickstart/
npm install
angular-quickstart@1.0.0 C:\Users\onava\Documents\angular2tests\curso_fernando\quickstart
+-- @angular/common@4.0.3
+-- @angular/compiler@4.0.3
+-- @angular/core@4.0.3
+-- @angular/forms@4.0.3
+-- @angular/http@4.0.3
+-- @angular/platform-browser@4.0.3
+-- @angular/platform-browser-dynamic@4.0.3
+-- @angular/router@4.0.3
+-- angular-in-memory-web-api@0.3.2
+-- core-js@2.4.1
+-- rxjs@5.0.1
| `-- symbol-observable@1.0.4
+-- systemjs@0.19.40
| `-- when@3.7.8
`-- zone.js@0.8.10
npm start
> angular-quickstart@1.0.0 prestart C:\Users\onava\Documents\angular2tests\curso_fernando\quickstart
> npm run build
> angular-quickstart@1.0.0 build C:\Users\onava\Documents\angular2tests\curso_fernando\quickstart
> tsc -p src/
src/app/app.component.spec.ts(7,1): error TS2304: Cannot find name 'describe'.
src/app/app.component.spec.ts(12,3): error TS2304: Cannot find name 'beforeEach'.
src/app/app.component.spec.ts(19,3): error TS2304: Cannot find name 'beforeEach'.
src/app/app.component.spec.ts(25,3): error TS2304: Cannot find name 'it'.
src/app/app.component.spec.ts(25,39): error TS2304: Cannot find name 'expect'.
src/app/app.component.spec.ts(27,3): error TS2304: Cannot find name 'it'.
src/app/app.component.spec.ts(30,5): error TS2304: Cannot find name 'expect'.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! angular-quickstart@1.0.0 build: `tsc -p src/`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the angular-quickstart@1.0.0 build script 'tsc -p src/'.
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 angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc -p src/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\onava\AppData\Roaming\npm-cache\_logs\2017-05-16T14_14_49_488Z-debug.log
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! angular-quickstart@1.0.0 prestart: `npm run build`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the angular-quickstart@1.0.0 prestart script 'npm run build'.
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 angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\onava\AppData\Roaming\npm-cache\_logs\2017-05-16T14_14_49_519Z-debug.log
I saw that in the guide appears:
Doesn’t work in Bash for Windows which does not support servers as of January, 2017.
So I used:
- git bash terminal
- cmder 1.3.2
- babun 1.2.0
Always getting same error…
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (3 by maintainers)
Top Results From Across the Web
Error running a 'npx tsc' command regarding Typescript
The problem is that npx doesn't know where to find the right tsc command. It first looks for a package named tsc ....
Read more >can't run npm to serve "lite-server - Google Groups
Okay, I reinstalled the demo directory. I ran sudo npm install on top directory,, didn't get an error. Then I do the command...
Read more >start-server-and-test - npm
This command is meant to be used with NPM script commands. If you have a "start server", and "test" script names for example,...
Read more >npm start not working in vs code terminal - You.com
From the Command Palette ( Ctrl + Shift + P ), use the View:Toggle Integrated Terminal command. Open side panel. "Npm Start" Is...
Read more >"npm start" permission denied error: how to solve it?
Most of cases are related to a bad Node installation or maybe related to the modules your [wrongly] are copying and pasting from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Happened to me when
npm install
didn’t install devDependencies. Changing the NODE_ENV to development seems to fix the issue.That’s true @Foxandxss, probably it’s a problem with my node installation…
Anyway, after running:
The Hello Angular message finally appeared on my browser…
I’ll leave the issue opened…as I’m new in angular, i’m not sure if it was an angular or a node problem…in this case I think it can be closed
Thanks