Closed ghost closed 8 years ago
A couple final notes on this cloud 9 stuff.
npm run serve.prod -- --port 8080
on cloud 9 it can look as though the script has hung after a couple of minutes. It has not. Its just that the last few lines are not output to the shell for some reason. The web app is being served.While running "npm test". I'm gettting below error:-
[09:46:03] Requiring external module ts-node/register
TSError: ⨯ Unable to compile TypeScript
test\gulpfile.ts (1,22): Cannot find module 'path'. (2307)
test\gulpfile.ts (4,9): Cannot find name 'require'. (2304)
test\gulpfile.ts (12,9): Cannot find name 'require'. (2304)
test\gulpfile.ts (13,16): Cannot find name 'require'. (2304)
test\gulpfile.ts (14,18): Cannot find name 'require'. (2304)
test\gulpfile.ts (14,31): Cannot find name 'process'. (2304)
test\gulpfile.ts (30,25): Cannot find name 'require'. (2304)
test\gulpfile.ts (46,18): Cannot find name 'require'. (2304)
test\gulpfile.ts (57,20): Cannot find name 'require'. (2304)
test\gulpfile.ts (59,22): Cannot find name 'process'. (2304)
test\gulpfile.ts (69,20): Cannot find name 'require'. (2304)
test\gulpfile.ts (71,22): Cannot find name 'process'. (2304)
test\gulpfile.ts (82,21): Cannot find name 'require'. (2304)
at getOutput (A:\project\dx2\node_modules\ts-node\src\ts-node.ts:210:13)
at Object.loader (A:\project\dx2\node_modules\ts-node\src\ts-node.ts:225:23)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Liftoff.handleArguments (A:\project\dx2\node_modules\gulp\bin\gulp.js:116:3)
at Liftoff.
@srishiva89 I've just went through this whole thread with the same problem, and what worked for me is the comment by @sarath2:
tsc --project tsconfig.json
npm start
This after a git checkout to a fresh folder.
tsc --project tsconfig.json
helps
I am having this issue when i start npm........npm installed successfully node js v6.9.5 npm 3.10.10
angular-quickstart@1.0.0 start C:\Projects\myapp tsc && concurrently "tsc -w" "lite-server"
Error occured when executing command: tsc -w
Error: Unable to detect platform shell type. Please set SHELL_EXECUTE_FLAG env variable.
at detectExecuteFlag (C:\Projects\myapp\node_modules\spawn-default-shell\src\get-shell.js:29:9)
at getShell (C:\Projects\myapp\node_modules\spawn-default-shell\src\get-shell.js:37:18)
at Object.spawn (C:\Projects\myapp\node_modules\spawn-default-shell\src\index.js:5:24)
at C:\Projects\myapp\node_modules\concurrently\src\main.js:192:34
at arrayMap (C:\Projects\myapp\node_modules\lodash\lodash.js:660:23)
at Function.map (C:\Projects\myapp\node_modules\lodash\lodash.js:9571:14)
at run (C:\Projects\myapp\node_modules\concurrently\src\main.js:181:22)
at main (C:\Projects\myapp\node_modules\concurrently\src\main.js:61:5)
at Object.
Thanks in advance
angular-quickstart@1.0.0 start C:\Projects\myapp tsc && concurrently "tsc -w" "lite-server"
This doesn't seem to have anything to do with angular-seed.
I am getting this error, with angular alpha 0.40