Discussion:
[DPP-Devel] HTML-GUI: "npm install" works, "npm run build" doesn't
Zieris, Franz
2016-01-15 14:37:29 UTC
Permalink
Hi there,

I have trouble setting up my Node.js environment to try out the HTML GUI.

I work on Windows 10. Here is what I did:
* Installed Node.js 4.2.4 from here: https://nodejs.org/en/
* Opened a Git Bash (to get all Linux-like feeling under Windows).
* Navigated to "de.fu_berlin.inf.dpp.ui.frontend/html"
* Ran "npm install" --> works fine
* Ran "npm run build" --> doesn't work

Here is the output of "npm run build":
-----
@ prebuild F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
Der Befehl "node" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! @ prebuild: `mkdirp bundle dist/bundle/ dist/css dist/fonts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ prebuild script 'mkdirp bundle dist/bundle/ dist/css dist/fonts'.
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! mkdirp bundle dist/bundle/ dist/css dist/fonts
npm ERR! You can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----

Both npm and node are accessible via the PATH variable:
-----
$ npm version
{ npm: '2.14.12',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '56.1',
modules: '46',
node: '4.2.4',
openssl: '1.0.2e',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }

$ node -v
v4.2.4
-----

Did anyone manage to run "npm run build" under Windows 10 yet?
Matthias? Nina? Thorsten?

Cheers,
Franz


PS: If I use Windows's "cmd", I get this output, i.e. the tasks "prebuild" and "build" work fine, but it crashes on "postbuild":

-----
@ prebuild F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
@ build F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
npm run build:jade -s && npm run build:js -s
@ postbuild F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js
Der Befehl "cp" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! @ postbuild: `cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ postbuild script 'cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js'.
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js
npm ERR! You can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
Christian Dohnert
2016-01-15 15:17:10 UTC
Permalink
You are right. What is worse is, that they have different output. I'm just
taking a shot in the dark here, but are you sure that your processes have
the 'rights' to alter files in the directories? I know that rights
management can be a bitch in windows...
It doesn’t include much more information.
I attached the two logfiles, created by executing “npm run build” from the
Git Bash and CMD, respectively.
Franz
*Sent:* Friday, January 15, 2016 3:52 PM
*Subject:* Re: [DPP-Devel] HTML-GUI: "npm install" works, "npm run build"
doesn't
npm ERR!
F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
You haven't, have you? Because it is (as it says) most likely that there
is something wrong with your setup.
Hi there,
I have trouble setting up my Node.js environment to try out the HTML GUI.
* Installed Node.js 4.2.4 from here: https://nodejs.org/en/
* Opened a Git Bash (to get all Linux-like feeling under Windows).
* Navigated to "de.fu_berlin.inf.dpp.ui.frontend/html"
* Ran "npm install" --> works fine
* Ran "npm run build" --> doesn't work
-----
@ prebuild
F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
Der Befehl "node" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! Exit status 1
npm ERR!
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! mkdirp bundle dist/bundle/ dist/css dist/fonts
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR!
F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
-----
$ npm version
{ npm: '2.14.12',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '56.1',
modules: '46',
node: '4.2.4',
openssl: '1.0.2e',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }
$ node -v
v4.2.4
-----
Did anyone manage to run "npm run build" under Windows 10 yet?
Matthias? Nina? Thorsten?
Cheers,
Franz
PS: If I use Windows's "cmd", I get this output, i.e. the tasks "prebuild"
-----
@ prebuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
@ build F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
npm run build:jade -s && npm run build:js -s
@ postbuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ &&
cp bundle/bundle.js dist/bundle/bundle.js
Der Befehl "cp" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js`
npm ERR! Exit status 1
npm ERR!
dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js
dist/bundle/bundle.js'.
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.*
dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR!
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
DPP-Devel mailing list
https://lists.sourceforge.net/lists/listinfo/dpp-devel
--
“Empty your mind, be formless, shapeless - like water. Now you put water
into a cup, it becomes the cup, you put water into a bottle, it becomes the
bottle, you put it in a teapot, it becomes the teapot. Now water can flow
or it can crash. Be water, my friend.” - Bruce Lee
--
“Empty your mind, be formless, shapeless - like water. Now you put water
into a cup, it becomes the cup, you put water into a bottle, it becomes the
bottle, you put it in a teapot, it becomes the teapot. Now water can flow
or it can crash. Be water, my friend.” - Bruce Lee
Zieris, Franz
2016-01-15 15:28:03 UTC
Permalink
I executed the same commands as Administrator again: Same result, i.e. in the Git Bash it won’t run because “node” cannot be found, in CMD it won’t run because “cp” cannot be found.

Sigh 


Franz

From: Christian Dohnert [mailto:***@gmail.com]
Sent: Friday, January 15, 2016 4:17 PM
To: Zieris, Franz <***@fu-berlin.de>
Cc: dpp-***@lists.sourceforge.net
Subject: Re: [DPP-Devel] HTML-GUI: "npm install" works, "npm run build" doesn't

You are right. What is worse is, that they have different output. I'm just taking a shot in the dark here, but are you sure that your processes have the 'rights' to alter files in the directories? I know that rights management can be a bitch in windows...
Zieris, Franz
2016-01-15 15:25:31 UTC
Permalink
Hi Thorsten,

This is what the PATH variable is for: Not having to worry about the location of executables.
And no: It did change anything in the outcome.

It says it cannot find "node".
But as I said, both commands "node" and "npm" work in isolation.
I don't know in which weird context "npm run build" internally tries to call "node" (or "cp" in the CMD case) where the PATH variable seems to be not set.

Franz

-----Original Message-----
From: Thorsten Reinhardt [mailto:***@web.de]
Sent: Friday, January 15, 2016 4:21 PM
To: Zieris, Franz <***@fu-berlin.de>; dpp-***@lists.sourceforge.net
Subject: AW: [DPP-Devel] HTML-GUI: "npm install" works, "npm run build" doesn't

Hi Franz,

have you also tried to point directly to the location, where you have nodejs installed, something like

XXX ~/Development/Saros/saros/de.fu_berlin.inf.dpp.ui.frontend/html
$ "c:/program files/nodejs/npm" run build ?

I had a similar problem and this was a solution ...

Regards,
Thorsten.
Nina Weber
2016-01-15 15:28:35 UTC
Permalink
Hi!

Yes, I encountered the same problem a few weeks ago. I guess the module "mkdirp" is just missing. I think I fixed it by running "npm install mkdirp" but I'm not sure anymore. You could give it a try though.

Cheers
Nina
Post by Zieris, Franz
Hi there,
I have trouble setting up my Node.js environment to try out the HTML GUI.
* Installed Node.js 4.2.4 from here: https://nodejs.org/en/
* Opened a Git Bash (to get all Linux-like feeling under Windows).
* Navigated to "de.fu_berlin.inf.dpp.ui.frontend/html"
* Ran "npm install" --> works fine
* Ran "npm run build" --> doesn't work
-----
@ prebuild F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
Der Befehl "node" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! Exit status 1
npm ERR!
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! mkdirp bundle dist/bundle/ dist/css dist/fonts
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
-----
$ npm version
{ npm: '2.14.12',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '56.1',
modules: '46',
node: '4.2.4',
openssl: '1.0.2e',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }
$ node -v
v4.2.4
-----
Did anyone manage to run "npm run build" under Windows 10 yet?
Matthias? Nina? Thorsten?
Cheers,
Franz
-----
@ prebuild F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
@ build F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
npm run build:jade -s && npm run build:js -s
@ postbuild F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js
Der Befehl "cp" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! Exit status 1
npm ERR!
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
DPP-Devel mailing list
https://lists.sourceforge.net/lists/listinfo/dpp-devel
Nina Weber
2016-01-15 15:58:12 UTC
Permalink
Hi,

okay, I didn't think about this... Then mkdirp can't be the problem.

But maybe it really is a problem with the path variable. I remember that I
had to set it up manually, too.

This is my npm and node version output:

$ npm version
{ npm: '2.14.7',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '56.1',
modules: '46',
node: '4.2.1',
openssl: '1.0.2d',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }

$ node -v
v4.2.1

-----Ursprüngliche Nachricht-----
Von: Zieris, Franz [mailto:***@fu-berlin.de]
Gesendet: Freitag, 15. Januar 2016 16:35
An: Nina Weber <***@fu-berlin.de>
Cc: dpp-***@lists.sourceforge.net
Betreff: RE: [DPP-Devel] HTML-GUI: "npm install" works, "npm run build"
doesn't

Hi Nina,

"mkdirp" is properly installed, otherwise the "prebuild" would not succeed
@ prebuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
@ build
[...]
(And yes, the folders are created.)

Furthermore:

-----
$ ls -l node_modules
total 68
drwxr-xr-x 1 Franz 197121 0 Jan 15 15:11 ampersand-app/ drwxr-xr-x 1 Franz
197121 0 Jan 15 15:11 ampersand-collection/ drwxr-xr-x 1 Franz 197121 0 Jan
15 15:11 ampersand-form-view/ drwxr-xr-x 1 Franz 197121 0 Jan 15 15:11
ampersand-input-view/ drwxr-xr-x 1 Franz 197121 0 Jan 15 15:11
ampersand-state/ drwxr-xr-x 1 Franz 197121 0 Jan 15 15:12 ampersand-view/
drwxr-xr-x 1 Franz 197121 0 Jan 15 15:11 backbone-events-standalone/
drwxr-xr-x 1 Franz 197121 0 Jan 15 15:12 bootstrap/ drwxr-xr-x 1 Franz
197121 0 Jan 15 15:12 browserify/ drwxr-xr-x 1 Franz 197121 0 Jan 15 15:54
cp/ drwxr-xr-x 1 Franz 197121 0 Jan 15 15:11 domready/ drwxr-xr-x 1 Franz
197121 0 Jan 15 15:11 exorcist/ drwxr-xr-x 1 Franz 197121 0 Jan 15 15:11
expect.js/ drwxr-xr-x 1 Franz 197121 0 Jan 15 15:12 jquery/ drwxr-xr-x 1
Franz 197121 0 Jan 15 15:12 jscs/ drwxr-xr-x 1 Franz 197121 0 Jan 15 15:12
jshint/ drwxr-xr-x 1 Franz 197121 0 Jan 15 15:12 jstree/ drwxr-xr-x 1 Franz
197121 0 Jan 15 15:11 lodash.bind/ drwxr-xr-x 1 Franz 197121 0 Jan 15 15:11
lodash.bindall/ drwxr-xr-x 1 Franz 197121 0 Jan 15 15:11 lodash.foreach/
drwxr-xr-x 1 Franz 197121 0 Jan 15 15:11 mkdirp/ <---- !!!
drwxr-xr-x 1 Franz 197121 0 Jan 15 15:12 mocha/ drwxr-xr-x 1 Franz 197121 0
Jan 15 15:11 templatizer/
-----

Could you execute "npm version" and "node -v" an post the output here?

Thanks,
Franz

-----Original Message-----
From: Nina Weber [mailto:***@fu-berlin.de]
Sent: Friday, January 15, 2016 4:29 PM
To: Zieris, Franz <***@fu-berlin.de>
Cc: dpp-***@lists.sourceforge.net
Subject: Re: [DPP-Devel] HTML-GUI: "npm install" works, "npm run build"
doesn't

Hi!

Yes, I encountered the same problem a few weeks ago. I guess the module
"mkdirp" is just missing. I think I fixed it by running "npm install mkdirp"
but I'm not sure anymore. You could give it a try though.

Cheers
Nina
Zieris, Franz
2016-01-15 15:29:17 UTC
Permalink
Thorsten, could you please execute "npm version" and "node -v" in your Git Bash environment and post the output here?

Franz

-----Original Message-----
From: Zieris, Franz
Sent: Friday, January 15, 2016 4:25 PM
To: 'Thorsten Reinhardt' <***@web.de>
Cc: dpp-***@lists.sourceforge.net
Subject: RE: [DPP-Devel] HTML-GUI: "npm install" works, "npm run build" doesn't

Hi Thorsten,

This is what the PATH variable is for: Not having to worry about the location of executables.
And no: It did change anything in the outcome.

It says it cannot find "node".
But as I said, both commands "node" and "npm" work in isolation.
I don't know in which weird context "npm run build" internally tries to call "node" (or "cp" in the CMD case) where the PATH variable seems to be not set.

Franz

-----Original Message-----
From: Thorsten Reinhardt [mailto:***@web.de]
Sent: Friday, January 15, 2016 4:21 PM
To: Zieris, Franz <***@fu-berlin.de>; dpp-***@lists.sourceforge.net
Subject: AW: [DPP-Devel] HTML-GUI: "npm install" works, "npm run build" doesn't

Hi Franz,

have you also tried to point directly to the location, where you have nodejs installed, something like

XXX ~/Development/Saros/saros/de.fu_berlin.inf.dpp.ui.frontend/html
$ "c:/program files/nodejs/npm" run build ?

I had a similar problem and this was a solution ...

Regards,
Thorsten.
Zieris, Franz
2016-01-15 15:50:07 UTC
Permalink
I just switched from the NodeJS 4.2.* line back to NodeJS 0.10.* (which is installed on our CI server).
This version works just fine.

@Basti: You installed NodeJS on our CI server. Was there a reason to go with the 0.10.* line?

I'll now work my way through the versions to see where the NPM/Windows combination breaks.
I'll include the results on our website.

Thanks for your input anyway!

Franz

-----Original Message-----
From: Zieris, Franz
Sent: Friday, January 15, 2016 3:37 PM
To: dpp-***@lists.sourceforge.net
Subject: HTML-GUI: "npm install" works, "npm run build" doesn't

Hi there,

I have trouble setting up my Node.js environment to try out the HTML GUI.

I work on Windows 10. Here is what I did:
* Installed Node.js 4.2.4 from here: https://nodejs.org/en/
* Opened a Git Bash (to get all Linux-like feeling under Windows).
* Navigated to "de.fu_berlin.inf.dpp.ui.frontend/html"
* Ran "npm install" --> works fine
* Ran "npm run build" --> doesn't work

Here is the output of "npm run build":
-----
@ prebuild
F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
Der Befehl "node" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! @ prebuild: `mkdirp bundle dist/bundle/ dist/css dist/fonts` npm ERR! Exit status 1 npm ERR!
npm ERR! Failed at the @ prebuild script 'mkdirp bundle dist/bundle/ dist/css dist/fonts'.
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! mkdirp bundle dist/bundle/ dist/css dist/fonts
npm ERR! You can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----

Both npm and node are accessible via the PATH variable:
-----
$ npm version
{ npm: '2.14.12',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '56.1',
modules: '46',
node: '4.2.4',
openssl: '1.0.2e',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }

$ node -v
v4.2.4
-----

Did anyone manage to run "npm run build" under Windows 10 yet?
Matthias? Nina? Thorsten?

Cheers,
Franz


PS: If I use Windows's "cmd", I get this output, i.e. the tasks "prebuild" and "build" work fine, but it crashes on "postbuild":

-----
@ prebuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
@ build
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
npm run build:jade -s && npm run build:js -s
@ postbuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ &&
cp bundle/bundle.js dist/bundle/bundle.js
Der Befehl "cp" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! @ postbuild: `cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js` npm ERR! Exit status 1 npm ERR!
npm ERR! Failed at the @ postbuild script 'cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js'.
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js
npm ERR! You can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
Bastian Sieker
2016-01-15 16:17:16 UTC
Permalink
Mh yeah there was a reason for using 0.10.* on the CI server but it was
because of some issue with
Jenkins and/or Ubuntu LTS (and node), i do not remember exactly.

Is the problem on Windows only?

Best
Post by Zieris, Franz
I just switched from the NodeJS 4.2.* line back to NodeJS 0.10.* (which is installed on our CI server).
This version works just fine.
@Basti: You installed NodeJS on our CI server. Was there a reason to go with the 0.10.* line?
I'll now work my way through the versions to see where the NPM/Windows combination breaks.
I'll include the results on our website.
Thanks for your input anyway!
Franz
-----Original Message-----
From: Zieris, Franz
Sent: Friday, January 15, 2016 3:37 PM
Subject: HTML-GUI: "npm install" works, "npm run build" doesn't
Hi there,
I have trouble setting up my Node.js environment to try out the HTML GUI.
* Installed Node.js 4.2.4 from here: https://nodejs.org/en/
* Opened a Git Bash (to get all Linux-like feeling under Windows).
* Navigated to "de.fu_berlin.inf.dpp.ui.frontend/html"
* Ran "npm install" --> works fine
* Ran "npm run build" --> doesn't work
-----
@ prebuild
F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
Der Befehl "node" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! mkdirp bundle dist/bundle/ dist/css dist/fonts
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
-----
$ npm version
{ npm: '2.14.12',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '56.1',
modules: '46',
node: '4.2.4',
openssl: '1.0.2e',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }
$ node -v
v4.2.4
-----
Did anyone manage to run "npm run build" under Windows 10 yet?
Matthias? Nina? Thorsten?
Cheers,
Franz
-----
@ prebuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
@ build
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
npm run build:jade -s && npm run build:js -s
@ postbuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ &&
cp bundle/bundle.js dist/bundle/bundle.js
Der Befehl "cp" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
Zieris, Franz
2016-01-15 17:13:44 UTC
Permalink
I played around with a lot of different NodeJS versions.
Result: Only the 0.10.* line (0.10.41 is the most recent one, from 2015-12-03) works on my machine.

But the next problem is already here:
When I want to look at the Saros HTML GUI view in Eclipse, I only get a blank white area.

I attached the console output from opening the view.
When I right-click in the white area, I get the standard Internet Explorer context menu.
- When I choose the action "Properties", I see the URL of the loaded HTML page, which is
file:///F:/Development/Saros/saros/de.fu_berlin.inf.dpp.ui.frontend/html/dist/main-page.html
- When I chose the action "Show source code", I see the source code of the very file,
which equals the content of the file 'html/main-page.html' -- which "npm run build" used
as the source for its copy operation.

So it looks like some Javascript is no properly executed?

When I open the file 'html/dist/main-page.html' in Firefox or Microsoft Edge, the page is displayed properly.
However, if I open it in Microsoft Internet Explorer, I have to click an "allow" button in a toolbar talking about "blocked scripts" and "ActiveX" to see the rendered page.
I even tried to permanently allow unsafe contents from my local machine (which indeed made the IE toolbar not appear again), but the Eclipse view remains white (furthermore this wouldn't be the way to go for Saros end-users anyway!).

Any ideas?

Franz

-----Original Message-----
From: Zieris, Franz
Sent: Friday, January 15, 2016 4:50 PM
To: dpp-***@lists.sourceforge.net; 'Bastian Sieker' <***@campus.uni-paderborn.de>
Subject: RE: HTML-GUI: "npm install" works, "npm run build" doesn't

I just switched from the NodeJS 4.2.* line back to NodeJS 0.10.* (which is installed on our CI server).
This version works just fine.

@Basti: You installed NodeJS on our CI server. Was there a reason to go with the 0.10.* line?

I'll now work my way through the versions to see where the NPM/Windows combination breaks.
I'll include the results on our website.

Thanks for your input anyway!

Franz

-----Original Message-----
From: Zieris, Franz
Sent: Friday, January 15, 2016 3:37 PM
To: dpp-***@lists.sourceforge.net
Subject: HTML-GUI: "npm install" works, "npm run build" doesn't

Hi there,

I have trouble setting up my Node.js environment to try out the HTML GUI.

I work on Windows 10. Here is what I did:
* Installed Node.js 4.2.4 from here: https://nodejs.org/en/
* Opened a Git Bash (to get all Linux-like feeling under Windows).
* Navigated to "de.fu_berlin.inf.dpp.ui.frontend/html"
* Ran "npm install" --> works fine
* Ran "npm run build" --> doesn't work

Here is the output of "npm run build":
-----
@ prebuild
F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
Der Befehl "node" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! @ prebuild: `mkdirp bundle dist/bundle/ dist/css dist/fonts` npm ERR! Exit status 1 npm ERR!
npm ERR! Failed at the @ prebuild script 'mkdirp bundle dist/bundle/ dist/css dist/fonts'.
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! mkdirp bundle dist/bundle/ dist/css dist/fonts
npm ERR! You can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----

Both npm and node are accessible via the PATH variable:
-----
$ npm version
{ npm: '2.14.12',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '56.1',
modules: '46',
node: '4.2.4',
openssl: '1.0.2e',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }

$ node -v
v4.2.4
-----

Did anyone manage to run "npm run build" under Windows 10 yet?
Matthias? Nina? Thorsten?

Cheers,
Franz


PS: If I use Windows's "cmd", I get this output, i.e. the tasks "prebuild" and "build" work fine, but it crashes on "postbuild":

-----
@ prebuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
@ build
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
npm run build:jade -s && npm run build:js -s
@ postbuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ &&
cp bundle/bundle.js dist/bundle/bundle.js
Der Befehl "cp" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! @ postbuild: `cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js` npm ERR! Exit status 1 npm ERR!
npm ERR! Failed at the @ postbuild script 'cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js'.
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js
npm ERR! You can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
Stefan Rossbach
2016-01-16 10:34:04 UTC
Permalink
This npm stuff for Windows is the greatest garbage I had ever seen.

I had similar issues, but do not know any longer how I solved it.

I did not use Cygwin or some Unix environment on Windows 7 so
I had to copy the stuff by myself after the output was created.

But I did not encountered the issues you had (blank page).

Maybe there are some issues with SWT and Windows 10 when accessing the
native OS interfaces.
Post by Zieris, Franz
I played around with a lot of different NodeJS versions.
Result: Only the 0.10.* line (0.10.41 is the most recent one, from 2015-12-03) works on my machine.
When I want to look at the Saros HTML GUI view in Eclipse, I only get a blank white area.
I attached the console output from opening the view.
When I right-click in the white area, I get the standard Internet Explorer context menu.
- When I choose the action "Properties", I see the URL of the loaded HTML page, which is
file:///F:/Development/Saros/saros/de.fu_berlin.inf.dpp.ui.frontend/html/dist/main-page.html
- When I chose the action "Show source code", I see the source code of the very file,
which equals the content of the file 'html/main-page.html' -- which "npm run build" used
as the source for its copy operation.
So it looks like some Javascript is no properly executed?
When I open the file 'html/dist/main-page.html' in Firefox or Microsoft Edge, the page is displayed properly.
However, if I open it in Microsoft Internet Explorer, I have to click an "allow" button in a toolbar talking about "blocked scripts" and "ActiveX" to see the rendered page.
I even tried to permanently allow unsafe contents from my local machine (which indeed made the IE toolbar not appear again), but the Eclipse view remains white (furthermore this wouldn't be the way to go for Saros end-users anyway!).
Any ideas?
Franz
-----Original Message-----
From: Zieris, Franz
Sent: Friday, January 15, 2016 4:50 PM
Subject: RE: HTML-GUI: "npm install" works, "npm run build" doesn't
I just switched from the NodeJS 4.2.* line back to NodeJS 0.10.* (which is installed on our CI server).
This version works just fine.
@Basti: You installed NodeJS on our CI server. Was there a reason to go with the 0.10.* line?
I'll now work my way through the versions to see where the NPM/Windows combination breaks.
I'll include the results on our website.
Thanks for your input anyway!
Franz
-----Original Message-----
From: Zieris, Franz
Sent: Friday, January 15, 2016 3:37 PM
Subject: HTML-GUI: "npm install" works, "npm run build" doesn't
Hi there,
I have trouble setting up my Node.js environment to try out the HTML GUI.
* Installed Node.js 4.2.4 from here: https://nodejs.org/en/
* Opened a Git Bash (to get all Linux-like feeling under Windows).
* Navigated to "de.fu_berlin.inf.dpp.ui.frontend/html"
* Ran "npm install" --> works fine
* Ran "npm run build" --> doesn't work
-----
@ prebuild
F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
Der Befehl "node" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! mkdirp bundle dist/bundle/ dist/css dist/fonts
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
-----
$ npm version
{ npm: '2.14.12',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '56.1',
modules: '46',
node: '4.2.4',
openssl: '1.0.2e',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }
$ node -v
v4.2.4
-----
Did anyone manage to run "npm run build" under Windows 10 yet?
Matthias? Nina? Thorsten?
Cheers,
Franz
-----
@ prebuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
@ build
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
npm run build:jade -s && npm run build:js -s
@ postbuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ &&
cp bundle/bundle.js dist/bundle/bundle.js
Der Befehl "cp" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
DPP-Devel mailing list
https://lists.sourceforge.net/lists/listinfo/dpp-devel
Matthias Bohnstedt
2016-01-19 13:25:05 UTC
Permalink
Hi all,

A little bit late, but the only thing I had to do (after updating to win
10) was to run "npm install" again. After 5 minutes, and a tone of loaded
modules, the script worked just fine without any error.

Even CP works now.(What didn't worked before on Win7/8).

And I using Windows Power Shell ^^...
Post by Stefan Rossbach
This npm stuff for Windows is the greatest garbage I had ever seen.
I had similar issues, but do not know any longer how I solved it.
I did not use Cygwin or some Unix environment on Windows 7 so
I had to copy the stuff by myself after the output was created.
But I did not encountered the issues you had (blank page).
Maybe there are some issues with SWT and Windows 10 when accessing the
native OS interfaces.
I played around with a lot of different NodeJS versions.
Result: Only the 0.10.* line (0.10.41 is the most recent one, from 2015-12-03) works on my machine.
When I want to look at the Saros HTML GUI view in Eclipse, I only get a blank white area.
I attached the console output from opening the view.
When I right-click in the white area, I get the standard Internet Explorer context menu.
- When I choose the action "Properties", I see the URL of the loaded HTML page, which is
file:///F:/Development/Saros/saros/de.fu_berlin.inf.dpp.ui.frontend/html/dist/main-page.html
- When I chose the action "Show source code", I see the source code of the very file,
which equals the content of the file 'html/main-page.html' -- which "npm run build" used
as the source for its copy operation.
So it looks like some Javascript is no properly executed?
When I open the file 'html/dist/main-page.html' in Firefox or Microsoft Edge, the page is displayed properly.
However, if I open it in Microsoft Internet Explorer, I have to click an "allow" button in a toolbar talking about "blocked scripts" and "ActiveX" to see the rendered page.
I even tried to permanently allow unsafe contents from my local machine (which indeed made the IE toolbar not appear again), but the Eclipse view remains white (furthermore this wouldn't be the way to go for Saros end-users anyway!).
Any ideas?
Franz
-----Original Message-----
From: Zieris, Franz
Sent: Friday, January 15, 2016 4:50 PM
Subject: RE: HTML-GUI: "npm install" works, "npm run build" doesn't
I just switched from the NodeJS 4.2.* line back to NodeJS 0.10.* (which is installed on our CI server).
This version works just fine.
@Basti: You installed NodeJS on our CI server. Was there a reason to go with the 0.10.* line?
I'll now work my way through the versions to see where the NPM/Windows combination breaks.
I'll include the results on our website.
Thanks for your input anyway!
Franz
-----Original Message-----
From: Zieris, Franz
Sent: Friday, January 15, 2016 3:37 PM
Subject: HTML-GUI: "npm install" works, "npm run build" doesn't
Hi there,
I have trouble setting up my Node.js environment to try out the HTML GUI.
* Installed Node.js 4.2.4 from here: https://nodejs.org/en/
* Opened a Git Bash (to get all Linux-like feeling under Windows).
* Navigated to "de.fu_berlin.inf.dpp.ui.frontend/html"
* Ran "npm install" --> works fine
* Ran "npm run build" --> doesn't work
-----
@ prebuild
F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
Der Befehl "node" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! mkdirp bundle dist/bundle/ dist/css dist/fonts
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
-----
$ npm version
{ npm: '2.14.12',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '56.1',
modules: '46',
node: '4.2.4',
openssl: '1.0.2e',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }
$ node -v
v4.2.4
-----
Did anyone manage to run "npm run build" under Windows 10 yet?
Matthias? Nina? Thorsten?
Cheers,
Franz
-----
@ prebuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
@ build
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
npm run build:jade -s && npm run build:js -s
@ postbuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ &&
cp bundle/bundle.js dist/bundle/bundle.js
Der Befehl "cp" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
DPP-Devel mailing list
https://lists.sourceforge.net/lists/listinfo/dpp-devel
Matthias Bohnstedt
2016-01-19 13:28:28 UTC
Permalink
My Settings:

Win 10
Powershell
npm: '2.10.1',
http_parser: '2.3',
modules: '14',
node: '0.12.4',
openssl: '1.0.1m',
uv: '1.5.0',
v8: '3.28.71.19',
zlib: '1.2.8'
Post by Matthias Bohnstedt
Hi all,
A little bit late, but the only thing I had to do (after updating to win
10) was to run "npm install" again. After 5 minutes, and a tone of loaded
modules, the script worked just fine without any error.
Even CP works now.(What didn't worked before on Win7/8).
And I using Windows Power Shell ^^...
Post by Stefan Rossbach
This npm stuff for Windows is the greatest garbage I had ever seen.
I had similar issues, but do not know any longer how I solved it.
I did not use Cygwin or some Unix environment on Windows 7 so
I had to copy the stuff by myself after the output was created.
But I did not encountered the issues you had (blank page).
Maybe there are some issues with SWT and Windows 10 when accessing the
native OS interfaces.
I played around with a lot of different NodeJS versions.
Result: Only the 0.10.* line (0.10.41 is the most recent one, from 2015-12-03) works on my machine.
When I want to look at the Saros HTML GUI view in Eclipse, I only get a blank white area.
I attached the console output from opening the view.
When I right-click in the white area, I get the standard Internet Explorer context menu.
- When I choose the action "Properties", I see the URL of the loaded HTML page, which is
file:///F:/Development/Saros/saros/de.fu_berlin.inf.dpp.ui.frontend/html/dist/main-page.html
- When I chose the action "Show source code", I see the source code of the very file,
which equals the content of the file 'html/main-page.html' -- which "npm run build" used
as the source for its copy operation.
So it looks like some Javascript is no properly executed?
When I open the file 'html/dist/main-page.html' in Firefox or Microsoft Edge, the page is displayed properly.
However, if I open it in Microsoft Internet Explorer, I have to click an "allow" button in a toolbar talking about "blocked scripts" and "ActiveX" to see the rendered page.
I even tried to permanently allow unsafe contents from my local machine (which indeed made the IE toolbar not appear again), but the Eclipse view remains white (furthermore this wouldn't be the way to go for Saros end-users anyway!).
Any ideas?
Franz
-----Original Message-----
From: Zieris, Franz
Sent: Friday, January 15, 2016 4:50 PM
Subject: RE: HTML-GUI: "npm install" works, "npm run build" doesn't
I just switched from the NodeJS 4.2.* line back to NodeJS 0.10.* (which is installed on our CI server).
This version works just fine.
@Basti: You installed NodeJS on our CI server. Was there a reason to go with the 0.10.* line?
I'll now work my way through the versions to see where the NPM/Windows combination breaks.
I'll include the results on our website.
Thanks for your input anyway!
Franz
-----Original Message-----
From: Zieris, Franz
Sent: Friday, January 15, 2016 3:37 PM
Subject: HTML-GUI: "npm install" works, "npm run build" doesn't
Hi there,
I have trouble setting up my Node.js environment to try out the HTML GUI.
* Installed Node.js 4.2.4 from here: https://nodejs.org/en/
* Opened a Git Bash (to get all Linux-like feeling under Windows).
* Navigated to "de.fu_berlin.inf.dpp.ui.frontend/html"
* Ran "npm install" --> works fine
* Ran "npm run build" --> doesn't work
-----
@ prebuild
F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
Der Befehl "node" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! mkdirp bundle dist/bundle/ dist/css dist/fonts
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! F:\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
-----
$ npm version
{ npm: '2.14.12',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '56.1',
modules: '46',
node: '4.2.4',
openssl: '1.0.2e',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }
$ node -v
v4.2.4
-----
Did anyone manage to run "npm run build" under Windows 10 yet?
Matthias? Nina? Thorsten?
Cheers,
Franz
-----
@ prebuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
mkdirp bundle dist/bundle/ dist/css dist/fonts
@ build
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
npm run build:jade -s && npm run build:js -s
@ postbuild
F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html
cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ &&
cp bundle/bundle.js dist/bundle/bundle.js
Der Befehl "cp" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! This is most likely a problem with the package, npm ERR! not with npm itself.
npm ERR! cp *.html dist/ && cp css/*.* dist/css/ && cp fonts/*.* dist/fonts/ && cp bundle/bundle.js dist/bundle/bundle.js
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! F:\\Development\Saros\saros\de.fu_berlin.inf.dpp.ui.frontend\html\npm-debug.log
-----
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
DPP-Devel mailing list
https://lists.sourceforge.net/lists/listinfo/dpp-devel
Loading...