NativeScript / NativeScript/nativescript-cli
NativeScript SideKick doesnt work with custom npm-global directory
Nobody has claimed this yet.
- 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.
-
Change default location of npm global package directory following instructions provided by npm
https://docs.npmjs.com/getting-started/fixing-npm-permissions -
Install NativeScript Sidekick for Linux
-
Run NativeScript Sidekick and get below error

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
No
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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