Skip to content

Build error - The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with #776

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

Closed
ranbuch opened this issue May 15, 2016 · 8 comments
Closed

Comments

@ranbuch
Copy link

ranbuch commented May 15, 2016

Please provide us with the following information:

  1. OS - Windows 10.
  1. Versions:
    angular-cli: 1.0.0-beta.1
    node: 4.4.1
    os: win32 ia32
  2. Here's what I've done:
    npm install -g angular-cli
    ng
    ng new ng_test
    cd ng_test
    ng serve
  3. log:
    Build error

The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
Error: EPERM: operation not permitted, symlink 'C:\Users\ranbu\Documents\dev\ng_test\tmp\broccoli_type_script_compiler-cache_path-gsJuqMJK.tmp\src\app\environment.js.map' -> 'C:\Users\ranbu\Documents\dev\ng_test\tmp\broccoli_type_script_compiler-output_path-Bivnrro5.tmp\src\app\environment.js.map'
at Error (native)
at Object.fs.symlinkSync (fs.js:897:18)
at BroccoliTypeScriptCompiler._outputFile (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:206:8)
at C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:108:18
at Array.forEach (native)
at C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:107:30
at Array.forEach (native)
at BroccoliTypeScriptCompiler._doIncrementalBuild (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:93:19)
at BroccoliTypeScriptCompiler.build (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:43:10)
at C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\broccoli-caching-writer\index.js:152:21
at lib$rsvp$$internal$$tryCatch (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1019:11)
at lib$rsvp$asap$$flush (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\rsvp\dist\rsvp.js:1198:9)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)

The broccoli plugin was instantiated at:
at BroccoliTypeScriptCompiler.Plugin (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\broccoli-caching-writer\node_modules\broccoli-plugin\index.js:10:31)
at BroccoliTypeScriptCompiler.CachingWriter as constructor
at BroccoliTypeScriptCompiler (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:27:10)
at Angular2App._getTsTree (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\lib\broccoli\angular2-app.js:280:18)
at Angular2App._buildTree (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\lib\broccoli\angular2-app.js:101:23)
at new Angular2App (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\lib\broccoli\angular2-app.js:42:23)
at module.exports (C:\Users\ranbu\Documents\dev\ng_test\angular-cli-build.js:6:10)
at Class.module.exports.Task.extend.setupBroccoliBuilder (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\ember-cli\lib\models\builder.js:55:19)
at Class.module.exports.Task.extend.init (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\ember-cli\lib\models\builder.js:89:10)
at new Class (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\ember-cli\node_modules\core-object\core-object.js:18:12)
at Class.module.exports.Task.extend.run (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\ember-cli\lib\tasks\serve.js:15:19)
at C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\ember-cli\lib\commands\serve.js:64:24
at lib$rsvp$$internal$$tryCatch (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1019:11)
at lib$rsvp$asap$$flush (C:\Users\ranbu\Documents\dev\ng_test\node_modules\angular-cli\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1198:9)

  1. I just installed it, created a new app and served it :(

ng-conf 2016 was epic!

@pkamdem
Copy link
Contributor

pkamdem commented May 15, 2016

@ranbuch
You need to run your Command Prompt as Admin. Please refer to #641

@UvaPrakash
Copy link

@ranbuch
Run the Command Prompt as Admin
image

@ranbuch
Copy link
Author

ranbuch commented May 15, 2016

Works like a charm. I must have missed that:

On Windows you need to run the build and serve commands with Admin permissions, otherwise the performance is not good.

Thank you.

@n1alloc
Copy link

n1alloc commented May 31, 2016

Guys, having the same problem (Broccoli Typescript Compiler Error) except using OSX, not Windows.
What are the steps to fix this bug?

@filipesilva
Copy link
Contributor

#905 should allow non-admin user usage.

@n1alloc
Copy link

n1alloc commented Jun 1, 2016

Hi filipesilva, I still have the same problem, how should I resolve this bug?

@filipesilva
Copy link
Contributor

Can you open a new issue with a copy of the error log? There are a few
different cases for Broccoli Typescript Compiler Error

On Wed, 1 Jun 2016, 17:10 Niall, [email protected] wrote:

Hi filipesilva, I still have the same problem, how should I resolve this
bug?


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#776 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AD-pL1wWjOGm1fpjl6m-ivrIK4dy1YKxks5qHa7XgaJpZM4Ie1aP
.

@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

5 participants