angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

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

Open ranbuch opened this issue 10 years ago • 8 comments

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!

ranbuch avatar May 15 '16 13:05 ranbuch

@ranbuch You need to run your Command Prompt as Admin. Please refer to https://github.com/angular/angular-cli/issues/641

pkamdem avatar May 15 '16 13:05 pkamdem

@ranbuch Run the Command Prompt as Admin image

UvaPrakash avatar May 15 '16 14:05 UvaPrakash

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.

ranbuch avatar May 15 '16 17:05 ranbuch

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

n1alloc avatar May 31 '16 15:05 n1alloc

https://github.com/angular/angular-cli/pull/905 should allow non-admin user usage.

filipesilva avatar Jun 01 '16 15:06 filipesilva

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

n1alloc avatar Jun 01 '16 16:06 n1alloc

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 https://github.com/angular/angular-cli/issues/776#issuecomment-223043159, or mute the thread https://github.com/notifications/unsubscribe/AD-pL1wWjOGm1fpjl6m-ivrIK4dy1YKxks5qHa7XgaJpZM4Ie1aP .

filipesilva avatar Jun 01 '16 16:06 filipesilva

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.