Skip to content

can't server project #886

Closed
Closed

Description

@houssemzaier

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 ...

Activity

  1. delasteve commented on May 22, 2016

    @delasteve
    Contributor

    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)

  2. monojack commented on May 23, 2016

    @monojack

    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

  3. houssemzaier commented on May 23, 2016

    @houssemzaier
    Author

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

  4. reflexdemon commented on May 27, 2016

    @reflexdemon
    Contributor

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

  5. added a commit that references this issue on Jun 1, 2016
    0bc3d94
  6. added a commit that references this issue on Jun 9, 2016
    43089ad
  7. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  8. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions