Build command fails with "The system cannot find the path specified"
See original GitHub issueUsing 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:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
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
.Then, from the path you want to build a project:
Andre
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 andpath.win32.join
on Windows.I’ll try reproducing this and confirming if that’s indeed the case on a Windows environment later today.