[ 
https://issues.apache.org/jira/browse/EAGLE-1098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16937688#comment-16937688
 ] 

Grainier Perera commented on EAGLE-1098:
----------------------------------------

Hi [~Pritam],

I've tested the same in following env, and it builds without any issues;
{quote}{{grainier@DESKTOP-O7F1NJ4:~/eagle/eagle-server$ lsb_release -a}}
{{No LSB modules are available.}}
{{*Distributor ID: Ubuntu*}}
{{*Description: Ubuntu 18.04.2 LTS*}}
{{*Release: 18.04*}}
{{*Codename: bionic*}}
{{grainier@DESKTOP-O7F1NJ4:~/eagle/eagle-server$ *node -v*}}
{{*v12.10.0*}}
{{grainier@DESKTOP-O7F1NJ4:~/eagle/eagle-server$ *npm -v*}}
{{*6.10.3*}}{quote}
{code:java}
grainier@DESKTOP-O7F1NJ4:~/eagle/eagle-server$ ./ui-build.sh
=============== Building Web UI ===============
Environment Check...
Environment Check...Pass
npm install...
audited 434 packages in 2.971s
found 46 vulnerabilities (12 low, 11 moderate, 23 high)
  run `npm audit fix` to fix them, or `npm audit` for details
building...> ApacheEagleWebApp@ build 
/home/grainier/eagle/eagle-server/src/main/webapp/app
> node build/index.jsGenerating resource tree...
Grunt packaging...> ApacheEagleWebApp@ grunt 
/home/grainier/eagle/eagle-server/src/main/webapp/app
> gruntRunning "jshint:all" (jshint) task
>> 35 files lint free.Running "clean:build" (clean) task
>> 1 path cleaned.Running "concat:js_require" (concat) task
File tmp/public/js/modules.js created.Running "copy:worker" (copy) task
Copied 3 filesRunning "copy:reference" (copy) task
Copied 3 filesRunning "concat:js_project" (concat) task
Source map tmp/public/js/doc.js.map created.
File tmp/public/js/doc.js created.Running "regex-replace:strict" 
(regex-replace) taskRunning "uglify:project" (uglify) taskRunning 
"cssmin:project" (cssmin) task
>> 1 file created. 14.94 kB → 6.93 kBRunning "concat:css_require" (concat) task
File tmp/public/css/doc.css created.Running "htmlrefs:project" (htmlrefs) 
taskRunning "copy:ui" (copy) task
Created 15 directories, copied 46 filesRunning "clean:tmp" (clean) task
>> 1 path cleaned.Done, without errors.
Grunt Exit Code: 0
=============== Finished ==============={code}
So, can you please share the node and npm version that you are using? If the 
versions are different from the above, can you please upgrade to that and check 
if that works?

PS: You can use the following command to install working node, npm versions
{quote}{{curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -}}
{{sudo apt-get install -y nodejs}}{quote}
Regards,

Grainier Perera.

 

> Build failing on windows sub-system for linux
> ---------------------------------------------
>
>                 Key: EAGLE-1098
>                 URL: https://issues.apache.org/jira/browse/EAGLE-1098
>             Project: Eagle
>          Issue Type: Bug
>          Components: Core::Eagle Server
>    Affects Versions: v0.5.0
>            Reporter: Pritam Sadhukhan
>            Assignee: Grainier Perera
>            Priority: Blocker
>
> I am trying to build the latest master branch on wsl (Ubuntu) on windows 10. 
> While building the project, the following error is encountered :
> {code:java}
> /mnt/d/eagle/eagle-server/ui-build.sh: line 2: $'\r': command not found
> /mnt/d/eagle/eagle-server/ui-build.sh: line 17: $'\r': command not found
> =============== Building Web UI ===============
> /mnt/d/eagle/eagle-server/ui-build.sh: line 19: $'\r': command not found
> Environment Check...
> /mnt/d/eagle/eagle-server/ui-build.sh: line 48: syntax error near unexpected 
> token `fi'
> /mnt/d/eagle/eagle-server/ui-build.sh: line 48: `fi'
> {code}
>  When tried to execute the ui-build.sh on bash shell got the same error.
>  
> WSL Version::
> Distributor ID: Ubuntu
> Description: Ubuntu 18.04.2 LTS
> Release: 18.04
> Codename: bionic



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to