NativeScript / NativeScript/nativescript-cli

NativeScript SideKick doesnt work with custom npm-global directory

Open
#3,523 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Did you verify this is a real problem by searching the [NativeScript Forum]

Yes - nothing found.

Tell us about the problem

Running NativeScript sidekick errors out with Native Script CLI not found but is installed and working.

  • verified by running tns --version

My NativeScript CLI is installed into home directory /home/jay/.npm-global

Which platform(s) does your issue occur on?

iOS/Android/Both

Please provide the following version numbers that your issue occurs with:
  • CLI: 3.4.3
  • Cross-platform modules: NA
  • Runtime(s): NA
  • Plugin(s): NA
Please tell us how to recreate the issue in as much detail as possible.
  1. Change default location of npm global package directory following instructions provided by npm
    https://docs.npmjs.com/getting-started/fixing-npm-permissions

  2. Install NativeScript Sidekick for Linux

  3. Run NativeScript Sidekick and get below error
    image

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

No

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

No source file or test is named. Reproduce the Linux case with NativeScript CLI 3.4.3 installed under /home/jay/.npm-global, then trace Sidekick's CLI discovery from the tns --version check; done when Sidekick detects that installation and a regression test covers the custom npm-global path.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, linux, nodejs
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.