NativeScript / NativeScript/nativescript-cli

ns migrate (to 8) failing at Android step

Open
#5,548 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 8.0.2
  • Cross-platform modules:
  • Android Runtime: 7.0.1
  • iOS Runtime: 6.5.4
  • XCode Version: 12.5.1
  • Plugin(s): none

Describe the bug

spawn: npm "install" "--legacy-peer-deps" "tns-android@8.0.0" "--silent" "--dev" "--save-dev" "--save-exact"
Will send the following information to Google Analytics: {
  type: 'googleAnalyticsData',
  category: 'CLI',
  googleAnalyticsDataType: 'event',
  action: 'Performance',
  label: 'PackageManager__install',
  customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
  value: 10877
}
Error: Command npm failed with exit code 1
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/common/child-process.js:143:36)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

To Reproduce

ns migrate --log trace

Expected behavior
Succesful migration

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing ns migrate --log trace with the reported CLI and runtime versions. Inspect nativescript/lib/common/child-process.js where the npm process failure is reported, then identify what causes the Android installation to exit with code 1; done means the migration completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
cli, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.