You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jan Piotrowski (Sujan) (JIRA)" <ji...@apache.org> on 2018/02/19 22:29:00 UTC

[jira] [Commented] (CB-13494) cordova-js node_modules is getting removed when running some commands using npm@5

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

Jan Piotrowski (Sujan) commented on CB-13494:
---------------------------------------------

Just had this exact same problem when running the command :(
Switching over to a node with npm4 temporarily via `npm` indeed solved the problem.

> cordova-js node_modules is getting removed when running some commands using npm@5
> ---------------------------------------------------------------------------------
>
>                 Key: CB-13494
>                 URL: https://issues.apache.org/jira/browse/CB-13494
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-coho
>            Reporter: Suraj Pindoria
>            Priority: Major
>
> This only seems to be an issue when using npm@5. While going through the platform release process, I was attempting to run "coho prepare-platform-release-branch ...", but it kept failing with an error saying it can't find local grunt. After inspecting the cordova-js directory was able to see that node_modules/ was no longer there, even after explicitly running "npm install". After downgrading to npm@4 and running prepare-platform-release-branch it successfully completed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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