Skip to content

'before-liveSync' throws and error if 'node_moduels' are manually deleted #3944

@VladimirAmiorkov

Description

@VladimirAmiorkov

Please, provide the details below:

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

Tell us about the problem

Please, ensure your title is less than 63 characters long and starts with a capital
letter.

Which platform(s) does your issue occur on?

Tested only Android

Please provide the following version numbers that your issue occurs with:

  • CLI: 5.0.0-2018-09-25-12294
  • Cross-platform modules: ^4.2.0
  • Runtime(s): 4.2.0

Please tell us how to recreate the issue in as much detail as possible.

  • Trigger tns run android
  • Stop it
  • Delete node_modules directory
  • Run again tns run android

Exception is thrown from "hooks/before-liveSync"

mcsofamiorkovlap:cobbl amiorkov$ tns run android
Skipping node_modules folder! Use the syncAllFiles option to sync files from this folder.
Searching for devices...
Executing before-liveSync hook from /Users/amiorkov/Desktop/Work/cobbl/cobblnativescript/cobbl/hooks/before-liveSync/nativescript-angular-sync.js
Cannot find module 'nativescript-angular/hooks/before-livesync'

Solution is to do manual npm i after deleting the node_modules

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions