-
Notifications
You must be signed in to change notification settings - Fork 12
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
Eclipse preferences: The '/usr/local/lib/node_modules/@angular/cli/bin/ng' is not a ng file. #64
Comments
The '/usr/local/lib/node_modules/@angular/cli/bin/ng' is a JavaScript file which must be executed with So the well file is "/usr/local/bin/ng" as you have said ($ which ng).
The "Use ng custom file" waits for a directory (and not the file) which contains the ng/ng.cmd file. So you should select "/usr/local/bin/" and not "/usr/local/bin/ng". When Terminal is opened, it adds in the env path this directory before opening the terminal. If you have not admin privilege, you can use directly the ng file. See #56 (comment) |
i just tried to set this up on a mac too i tried "/usr/local/bin/" as you said, i also tried to install cli local in my workspace and i always get the same error. I guess it's the @ in the path, because "/usr/local/bin/ng" is only a symbolic link to '/usr/local/lib/node_modules/@angular/cli/bin/ng' cd /usr/local/lib/node_modules/\@angular/cli/bin/ i guess you also have to escape the @ in your call, if this does not fix it i'm out of ideas how to get it working if i execute a |
but i still get problems when i try to run ng serve etc, even when i do a export in that terminal window it tells me |
Thanks for this information.
Once your ng project is created, you should have a |
@tiramon please reinstall 1.2.0 and tell me if your problem dispapear, thanks |
@tiramon could you tell me if it works now please? |
None answer, I close this issue. @tiramon please install 1.2.0 release, if you have problem again, please reopen it. |
@angelozerr |
@Springrbua could you help us with this issue please? |
@tokiaquino are you using latest (1.4 Snapshot) version? |
@Springrbua i confirm on monday because is in my work computer, but i have the same problem when configure global preference like i mention on previous comment |
@tokiaquino yea there were a few issues with the cli-settings in the 1.3 version. The ones I know about should be fixed with latest snapshot. |
Thanks @Springrbua, like you said, i have 1.3 version, now i update to 1.4. |
@tokiaquino I see the problem now. I will try to fix this night. |
@tokiaquino please reinstall snpashot and tell me if it works for you. |
@tokiaquino my fix was to support Angular CLI 1.5
Right it's since #110 @Springrbua I think we should rethink the logic of validation in global preferences. IMHI I think we should validate:
What do you think guys about that? |
@angelozerr the global oreferences should always validate the global cli. The custom cli is never validated, as it might be project dependent. |
@Springrbua validation is never done in global preferences because of https://github.com/angelozerr/angular-eclipse/blob/master/ts.eclipse.ide.angular.cli/src/ts/eclipse/ide/angular/internal/cli/preferences/AngularCLIConfigurationBlock.java#L313 I think we should validate:
I think too, we should add a button Once the preferences is changed, validation should be doen again. @Springrbua is there any chance that you implement that? Thanks for your help. |
In global preference |
@angelozerr The use global is already validated, also in global prefs (see a few lines before the position you linked). But we should also validate custom location as you said. |
I just wanted to throw in, that in 1.3.0 of this plugin the "Use ng global" radio button did not work and neither did setting the folder manually (it said that the folder given is not an ng file). With 1.4.0 (SNAPSHOT), nodejs 8.9.1 and angular 1.5.4 (installed globally) it worked - though it keeps offering me nodejs 6.x-something (embedded) by default - which is a bit annoying as I am not intending to use that. Basically: it seems to work with 1.4.0. Thanks :). |
Sorry not working for me... I am able to create one project but that is it... next project on the same workspace fails with No Angular CLI installation found in global preferences.' This is a major CF... You guys need to create and run tests.. |
@josersleal please note that we develop this plugin in our free time. More we have Windows OS, it's difficult for me and @Springrbua to test with another OS. So if you have problem, please help us, thanks. For run tests, please give us suggestion, I don't know how to write tests for this issue, please help us. |
@josersleal @angelozerr I am waiting for my new notebook, which I should get the next weak. |
With 1.3.x on Mac I also saw the original error reported in this issue (though with a different install location of ng, but I guess that doesn't matter). After upgrading to current 1.4.x, the error went away. However, I had to manually de-install the 1.3.x feature, because the feature name seems to have changed between versions. Before de-installing the old feature, I was seeing two "Angular" preference sections, out of which one was still showing the reported error. So as I'd see it, the original error is fixed in 1.4.x on Mac ... |
@jfrantzius thanks for your feedback!
@divStar Please reinstall 1.4.0 (SNAPSHOT), nodejs 8.9.1 should be available as embed nodejs (see angelozerr/typescript.java#222), hope it will work for you. |
On Eclipse Neon 3 (4.6.3) and Angular Eclipse 1.3.0 I also get the same message:
On Lubuntu 16.04 |
@stephaneeybert please try 1.4.0 which is not released https://github.com/angelozerr/angular-eclipse/wiki/Installation-Update-Site#140-snapshot-snapshot |
@angelozerr Thanks for the suggestion. I see a number of files in that directory. I don't know what to do with these files. You have a few guiding instructions ? Cheers. |
@stephaneeybert you only need to use http://oss.opensagres.fr/angular-eclipse/snapshot/ as update site for the plugin. |
@angelozerr After removing the plugin, I tried to add software from the given url but my Eclipse could not perform the operation and hanged trying to find alternate solutions. |
@angelozerr @Springrbua have you guys added support for Angular-CLI 6? |
Any update on this?? |
After adding 1.4.0 when i create a new project it is showing " No Angular CLI installation found in global preferences." |
I'm getting the same error pointed by @javaspeak. The ng file exists and it's working fine, but some validation is telling the file is not a ng file (that is not true). I have installed globally Angular CLI version 8.0.4. @angelozerr Can you help me? |
@Tony-Esales the Plugin hasn't been updated since a while and the Angular CLI changed quite a bit in that time. My guess is, that the command used to check the validity of the ng-file has been changed or even removed. |
I'm sorry guys but I have no time to continue this project. The new Angular support inside Eclipse is inside the new project https://github.com/eclipse/wildwebdeveloper but ng is not included for the moment eclipse-wildwebdeveloper/wildwebdeveloper#147 |
Hi Angelo and other Devs,
I am using a Mac and have installed "http://oss.opensagres.fr/angular2-eclipse/1.2.0-SNAPSHOT/" into NEON.
When I go to:
it says at the top of the window:
However there is a shell script ng file in the location:
I am not sure if this a permission problem or that the eclipse plugin is expecting a different format ng file. Like I said this ng file in the above location is a shell script. The eclipse plugin found the location by itself - I did not choose it.
I did previously run this command before installing the angular2-eclipse plugin:
Because of this configuration problem if I do:
and try to create a new project it shows in the Terminal window:
Incidentally because of this failure, no project is created at all on the file system when trying to create a Angular 2 project.
Finally if I type on the command line :
I get:
Maybe the eclipse plugin could try that location instead. For some reason If in the above preference section of eclipse and I select the radio button "Use ng custom file" and try and navigate to "/usr/local/bin/ng" I cannot access the path. Maybe this a Mac feature of eclipse.
Not sure if I have given enough information for you to know what the problem is.
Thank you for your time and your contribution to this plugin
The text was updated successfully, but these errors were encountered: