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

Xandor Schiefer commented on CB-9687:
-------------------------------------

Scratch that, the dependencies are installing normally, but with Npm v3.x.x the 
node_modules folder has a flat structure instead of a nested structure, only 
going deeper when there are conflicts. That explains why the cli cannot find 
the module--it's in a different place.

Npm 3.3.3 is since shortly the latest version of Npm (i.e. it's not pre-release 
anymore). Anyone that runs a `npm update -g` will have this same issue when 
they try to create a new project.

The docs currently don't mention a requirement for a specific version of Npm.

What's strange is that I have the same version of Npm installed on OS X 10.10.5 
and the directory structure on that machine is still nested.

> Cannot create new Cordova project
> ---------------------------------
>
>                 Key: CB-9687
>                 URL: https://issues.apache.org/jira/browse/CB-9687
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>         Environment: Debian 8 "Jessie" Stable
> Node v4.1.0 (installed from this repo: https://deb.nodesource.com/node_4.x)
> Npm v3.3.3
> Cordova 5.1.1, 5.3.1 & 5.3.2-dev (I tried different versions)
>            Reporter: Xandor Schiefer
>            Priority: Blocker
>
> I cannot create a Cordova project using `cordova create hello`. I get the 
> following error:
> {quote}
> Could not find directory: 
> /usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-app-hello-world
> {quote}
> `cordova-app-hello-world` is actually located at 
> `/usr/lib/node_modules/cordova/node_modules/cordova-app-hello-world`.
> It's worth noting that the whole 
> `/usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules` folder 
> doesn't exist.
> I ran `sudo npm install -g --reinstall cordova` with no change in behaviour.
> If I uninstall cordova and reinstall using `sudo npm install -g 
> cordova@5.1.1` I get the same error
> It's also affecting other users, see here one user that's trying to add 
> Android as a platform to Meteor: https://github.com/meteor/meteor/issues/5006.
> Installing `cordova-cli` and `cordova-plugman` from Git instead of Npm (as 
> per https://www.npmjs.com/package/cordova#installing-from-master) also 
> doesn't work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to