I'm learning react, and Installed live-server via npm globally. Each time i try to serve the directory (live-server public), i get a windows error saying - "this app can't run on your pc"
I am using windows 8.1
I found the problem, the problem was that live-server was trying to render my app using a browser but the default chrome browser was having issues so it kept popping that error.
The solution was just to set Firefox as my default browser from the control panel. Control Panel>default programs
Related
I am trying to run the Shopify Getting started app. Configuration and steps followed up to now:
Running on macOS Catalina 10.15.7 (don't reply with update your macOS, please) on a late 2013 MacBook Pro Retina (don't reply with buy a new Mac).
Created my Shopify partner account and development shop/store
Installed Node.js 14.19 with nvm (10.18.1 is my default and still in use for development unrelated to Shopify)
Installed shopify-cli 2.15.2 from Homebrew (I was using Homebrew before)
Ran nvm use lts/fermium
Ran shopify login
Ran shopify app create node, naming it hello_world, and as a public app
Created my ngrok account and the auth token
Ran shopify app tunnel auth with the token
Ran a first time shopify app serve
Installed the app into my development store using the URL shown by the preceding command. I saw an "Hello World"-style line (I don't remember the exact text)
Stopped the app with Ctrl+C
Rebooted computer for a security update
Ran nvm use lts/fermium then shopify app serve again
Now, I am unable to see again what I saw at the end of step 11.
Inside the Shopify development store dashboard, when I go to Applications then I click the link to my app that is listed, I get a 404 error from Github Pages.
When I point the ngrok endpoint URL in a browser on the same Mac, it tries and fails to redirect to https://undefined/admin/oauth/authorize?client_id=1f78cccba52990ef59c873bf295d0d4f&scope=write_products%2Cwrite_customers%2Cwrite_draft_orders&redirect_uri=https%3A%2F%2Fe6aa-174-92-160-71.ngrok.io%2Fauth%2Fcallback&state=091059053102325&grant_options%5B%5D=per-user . The undefined host seems very fishy. Of course, I don't have a network node named that way.
The same happens when I point http://localhost:8081 to that same browser on the same Mac.
I cannot open Appium inspector on Linux Ubuntu.
In the same folder I have 3 files:
Appium-Inspector-linux-2022.2.1.AppImage /
Appium-Server-GUI-linux-1.22.2.AppImage /
latest-linux.yml
When I open the Appium-Server-GUI-linux-1.22.2.AppImage file, start the server e click on the button to open Appium Ispector, it open a web page.
to fix this, it was necessary:
1: Start Appium Server
I did this, executing Appium-Server-GUI-linux-1.22.2.AppImage file.
2: Start Appium Inspector through of file Appium-Inspector-linux-2022.2.1.AppImage
3: Create the capabilities
After that, the Appium Inspector still don't open throught on Appium Server button, but it make it open and you can use.
Since the release of Appium v1.22 they have changed how the Appium Inspector works. I refer you to their official documentation on GitHub https://github.com/appium/appium-inspector, citing:
Appium Inspector is released in two formats:
As a desktop app for macOS, Windows, and Linux. You can get the most
recent published version of this app at the Releases section of this
repo. Simply grab the appropriate version for your OS and follow
standard installation procedures (but see the note below for macOS).
As a web application, hosted by Appium Pro. (It's currently a known
issue that the web version does not work on Safari). Please make sure
to read the note below on CORS as well.
If you like to work the old way, download Appium Desktop v1.21 or below.
install latest appium-inspector
open appium-inspector and insert "/wd/hub" in Remote Path
When I run npm start in a React or Angular project, the page stuck loading forever in blank.
I have tried to reinstall node, change ports and other things, and nothing. It's very strange. My OS is MacOS 10.14.6 and It started to fail suddenly days ago. And I have in my localhost mysql, apache and php running without problems.
There are not error messages.
-----EDIT-----
I tried to create new React and Angular apps too but localhost still not working.
-----EDIT 2-----
Sometimes, randomly in Safari incognito mode works, but I have disabled cache and try incognito mode on Chrome too, but nothing. Firefox is not working too.
I am trying the correct port and there are not messages in console.
FALSE ALARM
It was the antivirus but I don't know exactly why. Maybe was some extra security, but It's strange because localhost of Apache works for example.
On my Windows PC I have the latest version of node 6.9.1 which has V8 inspector built in. When I use the --inspect flag to run an app.js file and go to the "chrome-devtools" URL to attach the Debugger, everything works fine (I can set breakpoints and step through the code) but console.log code doesn't print to the chrome console. I already checked the console filter, it is set to ALL. It prints to the console window where I ran the app, just not to Chrome.
I have Windows Server 2008 R2. I dont have this issue on my macbook, it logs to the chrome console fine. I was hoping someone could check if they have it working on their Windows computer or if anybody else has run into this issue. Maybe its just a Server 2008 R2 issue?
It is very easy to test. Just create an app.js file with 1 line "console.log('test')", open command prompt or git Bash or whatever in the folder and type:
node --inspect --debug-brk app.js
It will give you a chrome-devtools URL. Go to this URL in chrome and you will see your app. The script execution will be stopped (due to the -brk flag) so you will have to resume it. If you have the same issue as me, you will notice that when you resume it, nothing will be logged to console.
I had the same problem. ( Node 6.11.0, V8 Inspector and no console)
I've updated Node.js to version 8.9.0 for Windows
I've downloaded the msi file here
Now everything it's OK.
I'm in the process of developing an app for iPhone, using PhoneGap, and I'm using the PhoneGap developer tools provided for iPhone, that ports the built app to my local iPhone using a node server.
This was all work, and then without any apparent reason it suddenly stopped. Here's a screenshot.
It just hangs at this screen.
How many files in www folder have your project?
I had same problem when running phonegap serve.
I used bower to install my packages, and I noticed if I removed the folders of some of my project dependencies serve resumed to work again. One of my packages had more than 100 files (I needed only 2).
I made a cleanup and solved the problem.
I hope it helps.