Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't server project #886

Closed
houssemzaier opened this issue May 22, 2016 · 5 comments
Closed

can't server project #886

houssemzaier opened this issue May 22, 2016 · 5 comments

Comments

@houssemzaier
Copy link

houssemzaier commented May 22, 2016

Here is the following informations:

  1. OS? Windows 10.
  1. ng --version
    angular-cli: 1.0.0-beta.5
    node: 5.10.1
    os: win32 x64
  2. Just used the serve command after new command.
  3. The log given by the failure.;
    D:\projects\angular2\MRIGUEL\starter-template\public\xccc (master) (xccc@0.0.0)
    λ ng serve

Running without elevated rights. Running Ember CLI "as Administrator" increases performance significantly.
See ember-cli.com/user-guide/#windows for details.

Livereload server on http://localhost:49152
Serving on http://localhost:4200/
The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
Error: EPERM: operation not permitted, symlink 'D:\projects\angular2\MRIGUEL\starter-template\public\xccc\tmp\broccoli_type_script_compiler-cache_path-ItOQSrV5.tmp\src\app\environment.js.map' -> 'D:\projects\angular2\MRIGUEL\starter-template\public\xccc\tmp\broccoli_type_script_compiler-output_path-AfkAbBhc.tmp\src\app\environment.js.map'
at Error (native)
at Object.fs.symlinkSync (fs.js:945:18)
at BroccoliTypeScriptCompiler._outputFile (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:206:8)
at D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:108:18
at Array.forEach (native)
at D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:107:30
at Array.forEach (native)
at BroccoliTypeScriptCompiler._doIncrementalBuild (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:93:19)
at BroccoliTypeScriptCompiler.build (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:43:10)
at D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\broccoli-caching-writer\index.js:152:21
at lib$rsvp$$internal$$tryCatch (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1019:11)
at lib$rsvp$asap$$flush (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1198:9)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

The broccoli plugin was instantiated at:
at BroccoliTypeScriptCompiler.Plugin (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\broccoli-plugin\index.js:10:31)
at BroccoliTypeScriptCompiler.CachingWriter as constructor
at BroccoliTypeScriptCompiler (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:26:49)
at Angular2App._getTsTree (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\lib\broccoli\angular2-app.js:321:18)
at Angular2App._buildTree (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\lib\broccoli\angular2-app.js:116:23)
at new Angular2App (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\lib\broccoli\angular2-app.js:53:23)
at module.exports (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\angular-cli-build.js:6:10)
at Class.module.exports.Task.extend.setupBroccoliBuilder (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\angular-cli\lib\models\builder.js:55:19)
at Class.module.exports.Task.extend.init (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\angular-cli\lib\models\builder.js:89:10)
at new Class (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\angular-cli\node_modules\core-object\core-object.js:18:12)
at Class.module.exports.Task.extend.run (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\angular-cli\lib\tasks\serve.js:15:19)
at D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\angular-cli\lib\commands\serve.js:64:24
at lib$rsvp$$internal$$tryCatch (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1019:11)
at lib$rsvp$asap$$flush (D:\projects\angular2\MRIGUEL\starter-template\public\xccc\node_modules\angular-cli\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1198:9)

  1. just to try the cli angular2 tool, I need to build my apps and generate js files to host them on firebase.
    Any help please ...
@delasteve
Copy link
Contributor

delasteve commented May 22, 2016

Could you post your tsconfig.json and angular-cli-build.json?

Edit:

To save some time, make sure of the following:

In your tsconfig.json, remove:

"mapRoot": "",

(234de2b#diff-07a68a6787db2e2ff85093b708c543f4L7)

In your angular-cli-build.json file, make sure your file endings look like this:

'zone.js/dist/**/*.+(js|js.map)',
'reflect-metadata/**/*.+(js|js.map)',
'rxjs/**/*.+(js|js.map)',
'@angular/**/*.+(js|js.map)'

(https://github.com/angular/angular-cli/blob/master/addon/ng2/blueprints/ng2/files/angular-cli-build.js)

@monojack
Copy link
Contributor

Hey! You are serving without elevated rights. Basically, you need to run ng serve from inside a command prompt with admin privileges otherwise it fails on windows.
For more info, refer to #641

@houssemzaier
Copy link
Author

Thank you all for helping me ,
I had to Run the Command Prompt as Admin !
now this works all good.
thanks again

@reflexdemon
Copy link
Contributor

@monojack I dont have admin rights on my workstation. I am waiting for #905 to be merged.

devCrossNet pushed a commit to devCrossNet/universal-cli that referenced this issue Jun 9, 2016
In case of non-admin user instead of symlinkSync will just writeFileSync.

Close angular#905
Fix angular#886
Fix angular#370
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
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

4 participants