[
https://issues.apache.org/jira/browse/CB-13586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16257033#comment-16257033
]
Lukas Plachy commented on CB-13586:
-----------------------------------
(copy from the original issue where it was out of place) Jan Piotrowski (Sujan)
added a comment - 2 days ago - edited
Thanks, and sorry for the runaround. Now I have something we can start
debugging.
Run these commands please and post their output:
node -v
cordova -v
npm list -g --depth=0
Did you install NodeJS directly or via nvm-windows or a similar tool?
Could you also run the `cordova create ...` command in another, new and empty
folder. Same error message?
What language is you Windows?
May first advice would be: Uninstall and reinstall Cordova via `npm uninstall
cordova` and then `npm install -g cordova`. Maybe there is just something wrong
with your installation.
If that doesn't help, try reinstalling nodejs via nvm-windows. That is only
indirectly connected, but in my experience it fixes similar problems in 90% of
the cases.
------------
(copy from the original issue where it was out of place) Lukas Plachy added a
comment - 2 days ago
Hi, so from the last item to the first:
The "reinstall cycles" are allready behind me :-/ This is one of first
things Im trying, however when I finish the other commands, I shall retry,
however due to the nature of our (main) project I have to downgrade npm in
version in order to be able to compile.
As installing, im not sure what means "install directly", I expect the msi
package from https://nodejs.org/en/ ... will retry through nvm.
As for the commands outputs:
{{D:\XXXXXXX\nodejs>node -v
v8.8.1
D:\XXXXXXX\nodejs>cordova -v
7.1.0
D:\XXXXXXX\nodejs>npm list -g --depth=0
D:\XXXXXXX\nodejs
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]
}}
ad cordova create on empty directory: the same, see
cordova_create_on_empty.png
ad Windows language, it is CZE (CS) Windows 7 Pro 64bit SP1
Going to remove and install nodejs again using nvm and perform the test, please
stand-by.
(copy from the original issue where it was out of place) Lukas Plachy added a
comment - 2 days ago - edited
Uhmmmm, so using nvm is a VERY BAD solution, since it is unable to establish
any prerequisites and fails even in its own simple commands, moreover it wrecks
the nodejs install completly, see attached commandline record nvm_install.png
Going for reinstall of nodejs and npm/quasar-cli/cordova manually from the MSI
(mean nodejs from the MSI and the others using the npm).
(Just for the sake of completness: of course I did an uninstall of nodejs and
all its traces from the system before trying the nvm path .
Addendum: doing 'npm -v' prints 5.5.1., so there is no other binary/version
left over.
(copy from the original issue where it was out of place) Jan Piotrowski (Sujan)
added a comment - 2 days ago
> since it is unable to establish any prerequisites
What do these words mean?
> moreover it wrecks the nodejs install completly, see attached commandline
> record nvm_install.png
Node 9.2.0 is 1 day old. (You probably get the same result installing it
directly from nodejs.org.) Node doesn't care if npm is ready or not it seems...
Installing the recommended 8.9.1 LTS via nvm-windows (which has the same npm)
works fine for me: nvm install 8.9.1, nvm use 8.9.1, npm install cordova -g
PS: Did you report the mentioned VB Script error to nvm-windows? This shouldn't
really happen.
Lukas Plachy added a comment - 2 days ago
> nvm prerequisites: because this is only a blind branch of this dialogue
> (since its content is not directly related to this cordova issue), adding
> just a few of my opinions on the end of this post.
> the VBScript error reporting: no, and honsetly at this point I have not more
> resources to do so (including the opinions on how the nvm behaves I'm
> mentioning above), maybe after we solve this entire issue. Btw the error is
> stating, that there is no scripting engine for a ".vbs", which might be also
> some setting on my PC, however Im running VBScripts here with wscript, so it
> will rather be some odd way how to call it
> testing the same with nodejs v 8.9.1. ... the error of cordova is the same,
> see record nvm_cordova_create.png
>>>>>>>> (BRACKET: A few opinion on the nvm at first glance) <<<<<<<<<<<<
(shortened for brevity, see the orignal textation in CB-13536
>>>>>>>> (BRACKET end) <<<<<<<<<<<<
> cordova create command failing when copying from template
> ---------------------------------------------------------
>
> Key: CB-13586
> URL: https://issues.apache.org/jira/browse/CB-13586
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-cli, cordova-create
> Reporter: Lukas Plachy
> Attachments: 2017-11-14T14_08_29_042Z-debug.log,
> cordova_create_cordova.png
>
>
> Hi, anybody an idea, whats wrong here (see attached image)? Such error does
> not help when doing first hands-on!
> Thanks
> [^2017-11-14T14_08_29_042Z-debug.log]
> [^cordova_create_cordova.png]
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]