facebook

unable to create angular project

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #581373 Reply

    myra123
    Participant

    I have installed angular IDE 2017 CI 11b.

    but while creating new angular project i get “Project Initialization commands execution failed error”
    Reason :
    Unexpected exit value executing
    npm install @angular/cli@1.6.5(exit value:-1)

    No other details about the error are mentioned in terminal

    IN Error Log i see following error :
    java.lang.reflect.InvocationTargetException: IWAE0027E Could not retrieve the validation configuration for resource hello.
    at org.eclipse.wst.validation.internal.ConfigurationManager.getProjectConfiguration(ConfigurationManager.java:135)
    at org.eclipse.wst.validation.internal.ConfigurationManager.getConfiguration(ConfigurationManager.java:251)
    at org.eclipse.wst.validation.internal.ValManager.getValidatorsNotCached(ValManager.java:226)
    at org.eclipse.wst.validation.internal.ValManager.access$1(ValManager.java:220)
    at org.eclipse.wst.validation.internal.ValManager$ValidatorCache.getValidatorsCached(ValManager.java:1263)
    at org.eclipse.wst.validation.internal.ValManager.getValidators(ValManager.java:197)
    at org.eclipse.wst.validation.internal.ValManager.accept(ValManager.java:745)
    at org.eclipse.wst.validation.internal.ValBuilderJob.run(ValBuilderJob.java:176)
    at org.eclipse.wst.validation.internal.ValBuilderJob.runInWorkspace(ValBuilderJob.java:126)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: org.eclipse.core.internal.resources.ResourceException: Resource ‘/hello’ does not exist.
    at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:334)
    at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:208)
    at org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:140)
    at org.eclipse.core.internal.resources.Resource.checkAccessibleAndLocal(Resource.java:214)
    at org.eclipse.core.internal.resources.Resource.getSessionProperty(Resource.java:1206)
    at org.eclipse.wst.validation.internal.ConfigurationManager.getProjectConfiguration(ConfigurationManager.java:126)
    … 10 more

    Tried suspend all validators through preference->Validator but it dint help

    I choose all default versions Node.js- 9.4.0 , NPM -5.6.0 , AngularCLI- 1.6.5 when craeting the project
    I am on Microsoft Windows 7 Enterprise

    • This topic was modified 6 years, 7 months ago by myra123.
    #581534 Reply

    support-swapna
    Moderator

    myra,

    Sorry that you are seeing this issue.

    1. Are you behind a firewall or proxy? If yes, then you should set the proxy information in Angular IDE here : Window > Preferences > General > Network Connections.
    For help with setting up proxy details, please refer to this link which discusses configuring proxy in Eclipse : https://www.mkyong.com/web-development/how-to-configure-proxy-settings-in-eclipse/
    You can follow the same steps in Angular IDE.

    2. Our Angular tools download the Node.js and NPM versions selected in the wizard to the .webclipse folder located in your user home directory. Can you please check if you see the folders and contents for 9.4.0 under nodejs and 5.6.0 under npm in the .webclipse folder?

    3. If you already have Node and NPM installed in your system, then you can choose ‘Use system installation’ for Nodejs and NPM in the project creation wizard and see if the project creates fine.

    4. If you are still unable to create an Angular project, then please open the Terminal+ session for the project, enter set -x and then run npm install @angular/cli@1.6.5 command. Share with us the entire output of the Terminal+ view to help us investigate further.

    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

    #581590 Reply

    myra123
    Participant

    here is the log for step 4 u asked for as i am not able to attach it .

    $ set -x
    ++ show_command_in_title_bar
    ++ case “$BASH_COMMAND” in
    ++ echo -ne ‘\033]0;set -x\007’
    + set -x
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;echo TPStart > /dev/null\007’
    ++ echo TPStart
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;history -w “$HISTFILE”2\007’
    ++ history -w /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclipse.terminal/ProjectSettings/abc/bash_history2
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;cat “$HISTFILE” “$HISTFILE”2\007’
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;awk ‘\”{a[i++]=$0} END {for (j=0; j<i; j++) if ((!b[a[j]]++ && a[j] != a[i-1]) || j == i-1) print a[j]}’\” > “$HISTFILE”new\007’
    ++ cat /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclipse.terminal/ProjectSettings/abc/bash_history /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclips
    e.terminal/ProjectSettings/abc/bash_history2
    ++ awk ‘{a[i++]=$0} END {for (j=0; j<i; j++) if ((!b[a[j]]++ && a[j] != a[i-1]) || j == i-1) print a[j]}’
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;history -c\007’
    ++ history -c
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;rm “$HISTFILE”\007’
    ++ rm /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclipse.terminal/ProjectSettings/abc/bash_history
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;mv “$HISTFILE”new “$HISTFILE”\007’
    ++ mv /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclipse.terminal/ProjectSettings/abc/bash_historynew /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webcli
    pse.terminal/ProjectSettings/abc/bash_history
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;history -r “$HISTFILE”\007’
    ++ history -r /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclipse.terminal/ProjectSettings/abc/bash_history
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    ++ echo -ne ‘\033]0;/c/Daten/AngularWorkspace/abc\007’
    ++ __git_ps1
    ++ local exit=0
    ++ local pcmode=no
    ++ local detached=no
    ++ local ‘ps1pc_start=\u@\h:\w ‘
    ++ local ‘ps1pc_end=\$ ‘
    ++ local ‘printf_format= (%s)’
    ++ case “$#” in
    ++ printf_format=’ (%s)’
    ++ local ps1_expanded=yes
    ++ ‘[‘ -z ” ‘]’
    ++ ‘[‘ -z ‘4.4.19(1)-release’ ‘]’
    ++ shopt -q promptvars
    ++ local repo_info rev_parse_exit_code
    +++ git rev-parse –git-dir –is-inside-git-dir –is-bare-repository –is-inside-work-tree –short HEAD
    ++ repo_info=
    ++ rev_parse_exit_code=128
    ++ ‘[‘ -z ” ‘]’
    ++ return 0

    /c/Daten/AngularWorkspace/abc
    $ npm install @angular/cli@1.6.5
    ++ show_command_in_title_bar
    ++ case “$BASH_COMMAND” in
    ++ echo -ne ‘\033]0;npm install @angular/cli@1.6.5\007’
    + npm install @angular/cli@1.6.5
    npm WARN registry Unexpected warning for http://registry.npmjs.org/: Miscellaneous Warning EPROTO: request to http://registry.npmjs.org/@angular%2fcli failed, reason: write EPROTO 101057795:error:140
    770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\\ssl\\s23_clnt.c:827:\n
    npm WARN registry Using stale package data from http://registry.npmjs.org/ due to a request error during revalidation.
    npm ERR! code EPROTO
    npm ERR! errno EPROTO
    npm ERR! request to http://registry.npmjs.org/lru-cache failed, reason: write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:827:
    npm ERR!

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\SurveP\AppData\Roaming\npm-cache\_logs\2018-04-19T10_57_41_251Z-debug.log
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;echo TPStart > /dev/null\007’
    ++ echo TPStart
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;history -w “$HISTFILE”2\007’
    ++ history -w /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclipse.terminal/ProjectSettings/abc/bash_history2
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;cat “$HISTFILE” “$HISTFILE”2\007’
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;awk ‘\”{a[i++]=$0} END {for (j=0; j<i; j++) if ((!b[a[j]]++ && a[j] != a[i-1]) || j == i-1) print a[j]}’\” > “$HISTFILE”new\007’
    ++ cat /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclipse.terminal/ProjectSettings/abc/bash_history /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclips
    e.terminal/ProjectSettings/abc/bash_history2
    ++ awk ‘{a[i++]=$0} END {for (j=0; j<i; j++) if ((!b[a[j]]++ && a[j] != a[i-1]) || j == i-1) print a[j]}’
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;history -c\007’
    ++ history -c
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;rm “$HISTFILE”\007’
    ++ rm /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclipse.terminal/ProjectSettings/abc/bash_history
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;mv “$HISTFILE”new “$HISTFILE”\007’
    ++ mv /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclipse.terminal/ProjectSettings/abc/bash_historynew /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webcli
    pse.terminal/ProjectSettings/abc/bash_history
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    +++ echo -ne ‘\033]0;history -r “$HISTFILE”\007’
    ++ history -r /C/Daten/AngularWorkspace/.metadata/.plugins/com.genuitec.eclipse.webclipse.terminal/ProjectSettings/abc/bash_history
    +++ show_command_in_title_bar
    +++ case “$BASH_COMMAND” in
    ++ echo -ne ‘\033]0;/c/Daten/AngularWorkspace/abc\007’
    ++ __git_ps1
    ++ local exit=1
    ++ local pcmode=no
    ++ local detached=no
    ++ local ‘ps1pc_start=\u@\h:\w ‘
    ++ local ‘ps1pc_end=\$ ‘
    ++ local ‘printf_format= (%s)’
    ++ case “$#” in
    ++ printf_format=’ (%s)’
    ++ local ps1_expanded=yes
    ++ ‘[‘ -z ” ‘]’
    ++ ‘[‘ -z ‘4.4.19(1)-release’ ‘]’
    ++ shopt -q promptvars
    ++ local repo_info rev_parse_exit_code
    +++ git rev-parse –git-dir –is-inside-git-dir –is-bare-repository –is-inside-work-tree –short HEAD
    ++ repo_info=
    ++ rev_parse_exit_code=128
    ++ ‘[‘ -z ” ‘]’
    ++ return 1

    #581612 Reply

    myra123
    Participant

    Hi Swapna,
    Reposting this as i no longer see my previous reply
    1. Yes i have made these network changes
    2. Yes i have contents for 9.4.0 under nodejs and 5.6.0 under npm in the .webclipse folder.
    3. Yes i am trying with system installed Node(8.11.1) and NPM(5.8.0)
    4. attached log

    PS: i read other thread where similar issue was logged and as per the solution that worked there i downloaded git bash separately which solved the earlier error that i had but now gives me new error

    npm WARN registry Unexpected warning for http://registry.npmjs.org/: Miscellaneous Warning EPROTO: request to http://registry.npmjs.org/@angular%2fcli failed, reason: write EPROTO 101057795:error:140
    770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\\ssl\\s23_clnt.c:827:\n
    npm WARN registry Using stale package data from http://registry.npmjs.org/ due to a request error during revalidation.
    npm ERR! code EPROTO
    npm ERR! errno EPROTO
    npm ERR! request to http://registry.npmjs.org/bluebird failed, reason: write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:827:
    npm ERR!

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\SurveP\AppData\Roaming\npm-cache\_logs\2018-04-19T09_52_52_308Z-debug.log

    #581626 Reply

    support-swapna
    Moderator

    myra,

    Thank you for the details.

    1. Can you please clarify if you have configured both the HTTP and HTTPS in the Network Connections page?
    If you have an HTTP connection to the proxy, leave only the HTTP setting configured, with the rest empty.
    Configuring both values could lead to incorrect settings being made for NPM.

    After making these settings, you could open the Internal Web Browser (Window > Show View > Other > General
    > Internal Web Browser) and confirm that it’s capable of reaching the net before attempting to create an
    Angular project.

    2. If you can access the net from the internal browser, then please try the Angular project creation once again and if it fails, send us the latest debug log from this location : C:\Users\SurveP\AppData\Roaming\npm-cache\_logs\ for further investigation. Please change the extension of the log file to .txt and attach it.

    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

    #581803 Reply

    myra123
    Participant

    Hi Swapna,

    1. Yes,I had configured for both http and https before .
    now i cleared https connection and checked Internal Web Browser. it is able to reach internet

    Also,
    Url : http://registry.npmjs.org/ gives me following output (Does it look ok?)
    {“db_name”:”registry”,”doc_count”:860425,”doc_del_count”:342,”update_seq”:10578380,”purge_seq”:0,”compact_running”:false,”disk_size”:5929193607,”data_size”:4941137120,”instance_start_time”:”1524203098223998″,”disk_format_version”:6,”committed_update_seq”:10578380}

    But i just noticed when i open Create angular project window, above Project name text box i see following warning :
    Could not update Angular CLI version list. Please check your network connection.

    Attached log after creating new project

    • This reply was modified 6 years, 7 months ago by myra123.
    Attachments:
    You must be logged in to view attached files.
    #581806 Reply

    myra123
    Participant

    Hi Swapna,

    I see this error in log
    http://registry.npmjs.org/unique-filename failed, reason: connect ETIMEDOUT 172.31.55.60:8080

    but am able to download this json file from eclipse’s Internal Web Browser. Looks like it’s not proxy issue anymore.

    #591273 Reply

    qkakuda
    Participant

    Downloading and extracting Node 10.4.1…
    Downloading and extracting NPM 6.1.0…
    Node.js version: v10.4.1
    NPM version: 6.1.0
    npm install @angular/cli@6.1.0-rc.0
    npm ERR! code EPROTO
    npm ERR! errno EPROTO
    npm ERR! request to https://registry.npmjs.org/@angular%2fcli failed, reason: write EPROTO 16608:error:1408F10B:SSL routines:ssl3_get_record:
    wrong version number:openssl\ssl\record\ssl3_record.c:252:
    npm ERR!

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\3657766\AppData\Roaming\npm-cache\_logs\2018-06-14T19_09_17_952Z-debug.log

    I can’t post for help without paying for a license? and this topic seems similar to my issue since I am also getting the EPROTO error.

    Can I somehow use an external angular/cli I have downloaded with angular ide in eclipse or is there something else I need to do to fix this

    #591319 Reply

    support-swapna
    Moderator

    qkakuda,

    Sorry that you are seeing issues with Angular project creation.

    1. Can you please clarify if this is the first time you are trying to create an Angular project using our tools or you could successfully create angular projects before but seeing this problem recently?

    2. Are you behind a proxy? If yes, then can you please recheck if it is configured correctly?
    Here is the detailed FAQ about configuring proxy in the IDE : https://www.genuitec.com/forums/topic/configuring-the-network-proxy-settings/
    You don’t necessarily need both HTTP and HTTPS configured in the proxy page.
    if you have an HTTP connection to the proxy, leave only the HTTP setting configured, with the rest empty – your proxy would still most likely be able to establish HTTPS connections too.
    Configuring both values could lead to incorrect settings being made for NPM.

    3. If you can access internet from within the IDE using the internal web browser but still seeing problems with Angular project creation, then please share with us the latest log from C:\Users\3657766\AppData\Roaming\npm-cache\_logs\ for further investigation.

    4. Here is the link to the instructions to install and create Angular CLI projects from command line :
    https://github.com/angular/angular-cli
    You can then import the projects to the IDE using the Import > Angular > Angular Project wizard.

    Apologies for inconvenience caused. Please let us know how it works for you.

    –Swapna
    Genuitec Support

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: unable to create angular project

You must be logged in to post in the forum log in