question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build command fails with "The system cannot find the path specified"

See original GitHub issue

Using the latest llama-pack instructions, I’m able to successfully execute the init command.

After completing the init command, I execute the build command and receive the following error:

PS C:\Dev\llama-pack> npx GoogleChromeLabs/llama-pack#0.1.0 build
(node:23244) ExperimentalWarning: The fs.promises API is experimental
Installing Android Build Tools. Please, read and accept the license agreement
Installing Build Tools
The system cannot find the path specified.
undefined

After the error, the tool exits.

When it says “system cannot find the path specified”, it’s not clear to me which path is being referred to, though I suspect it’s the Android SDK path. When I first ran the init command, it prompted me for paths to JDK and Android SDK; my llama-pack-config.js looks like this:

'use strict';
module.exports = {
  jdkPath: 'C:/Program Files/AdoptOpenJDK/jdk-8.0.232.09-hotspot/', // Path to the JDK 8
  androidSdkPath: 'C:/AndroidTools/' // Path to the Android SDK
};

Any idea why I may be getting this path error? I’m on Windows 10 Enterprise using Powershell.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
andrebancommented, Dec 11, 2019

Re-opening, since you are still running into the issue.

I am not able to repro on my Windows environment. So, trying to understand how to reproduce.

The config file location is defined as the following:

const homedir = require('os').homedir();
const CONFIG_FILE_NAME = path.join(homedir, '/.llama-pack/llama-pack-config.json');

On my Windows environment this is C:\Users\Andre\.llama-pack\llama-pack-config.json.

@JudahGabriel, would it be possible for you to clone the project, run npm install and execute from your machine? I’d like to eliminate any issues from using npx.

git clone https://github.com/GoogleChromeLabs/llama-pack.git
cd llama-pack
npm i
npm run build

Then, from the path you want to build a project:

<path-to-llama-pack>\bin\llama-pack.js build

Andre

1reaction
andrebancommented, Dec 4, 2019

Thanks for filing this.

The issue seems to be happening in this section of code.

My guess is that it’s not resolving the correct path, and we probably need to change it to use path.posix.join on Linux / MacOS and path.win32.join on Windows.

I’ll try reproducing this and confirming if that’s indeed the case on a Windows environment later today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

11 Ways to Fix "The System Cannot Find The Path Specified ...
1. Run Command Prompt as an Administrator · 2. Ensure the File Isn't Password Protected · 3. Check Your System for Viruses ·...
Read more >
How to Fix "The system cannot find the path specified." Error in ...
It seems this error occurs when you have invalid paths in your PATH environment variable e.g. directories which don't exist anymore. To find...
Read more >
Build fails in Windows - The system cannot find the path ...
Symptoms. This error happens when a build runs on a Windows machine: · Cause. This happens due to long plan keys and /...
Read more >
Make error: The system cannot find the path specified
For example if I open a command.com terminal on a Windows system I see: C:\Users\build> cd src; echo hi The system cannot find...
Read more >
How to fix “The system cannot find the specified path” error
Solution 1: Check path for errors · Solution 2: Check directory or folder · Solution 3: Remove invalid environment variable · Solution 4:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found