Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Can't build Cygwin and Windows 10 without --force #12649

Closed
jrgleason opened this issue Aug 21, 2015 · 7 comments
Closed

Can't build Cygwin and Windows 10 without --force #12649

jrgleason opened this issue Aug 21, 2015 · 7 comments
Milestone

Comments

@jrgleason
Copy link

I am trying to build and getting....

$ grunt package
Running "shell:npm-install" (shell) task
Warning: EINVAL, invalid argument Use --force to continue.

Aborted due to warnings.

Going to try and troubleshoot

grunt-cli v0.1.13
grunt v0.4.5
@jrgleason
Copy link
Author

In addition when I do use --force I get the following...

 >> build/angular-message-format.js minified into build/angular-message-format.min.js
build\angular.js:4437: WARNING - Throw expression is not a minErr instance.
      throw err;
      ^

build\angular.js:10656: WARNING - Throw expression is not a minErr instance.
        throw e;
        ^

build\angular.js:12125: WARNING - Throw expression is not a minErr instance.
    throw e;
    ^

build\angular.js:15989: WARNING - Throw expression is not a minErr instance.
        throw e;
        ^

0 error(s), 4 warning(s)
>> build/angular.js minified into build/angular.min.js

But it does in fact finish

@jrgleason
Copy link
Author

Could it be related to this line in the gruntfile...

"npm-install": {
    command: path.normalize('scripts/npm/install-dependencies.sh')
  },

And the fact that I am on windows w/ cygwin (aka paths getting hosed)?

@jrgleason jrgleason changed the title Can't build Cygwin and Windows 10 Can't build Cygwin and Windows 10 without --force Aug 21, 2015
@lgalfaso
Copy link
Contributor

lgalfaso commented Aug 22, 2015 via email

@Narretz
Copy link
Contributor

Narretz commented Aug 23, 2015

I think this is is only half the solution. You'll probably run into #11143 after this is fixed

@Narretz
Copy link
Contributor

Narretz commented Aug 23, 2015

Actually, the path.normalize should handle different platform file paths, so it's probably a different problem. Can you run the command --verbose?

@gkalpak
Copy link
Member

gkalpak commented Sep 22, 2015

shell:npm-install has been re-implemented as part of #12792.
@jrgleason, can you test if your issues are still there with the code currently on master ?

@gkalpak
Copy link
Member

gkalpak commented Oct 26, 2015

Closing since the part that was causing issues has been re-implemented and there hasn't been any response for over a month. Feel free to re-open, if you are still facing this problem.

@gkalpak gkalpak closed this as completed Oct 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants