Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
When I try to run ng serve command in my project it produce the below error.
ERROR in ngcc is already running at process with id xxxx
Try deleting your ngcc_lock_file in the path:
node_modules/#angular/compiler-cli/ngcc/ngcc_lock_file
Or for Angular 9, the lock file to delete is:
node_modules/#angular/compiler-cli/ngcc/__ngcc_lock_file__
I had the same issue and I and deleted that file and it started working for me.
rm node_modules/#angular/compiler-cli/ngcc/__ngcc_lock_file__
Working Solution
Delete all node modules
Close any working terminal or you can shut down your PC if you cant make sure that you've closed all working terminals
run npm i to setup your modules
run ng s
It's working with me well !
The problem is most-likely a unique case.
Make sure you don't run other ng serve in parallel.
Stop current processes running and retry.
Reload your computer and try again.
If that does not help
Post a full log, so it is possible to troubleshoot your problem.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed yesterday.
Improve this question
Disclaimer: This is my first question feel free to leave feedback.
Hi,
when I open my local HTML file in Chrome I cant save any changes made to the file once it was opened in Chrome.
The error is stating:
failed to save 'styles.css': Unable to write file 'd:\Web_Development\CSS - My Site\CSS\styles.css' (Unknown (FileSystemError): Error: EBUSY: resource busy or locked, open 'd:\Web_Development\CSS - My Site\CSS\styles.css')
failed to save 'index.html': Unable to write file 'd:\Web_Development\CSS - My Site\index.html' (Unknown (FileSystemError): Error: EBUSY: resource busy or locked, open 'd:\Web_Development\CSS - My Site\index.html')
Even after killing all proccess of Chrome AND killing all processes running a handle on the file directory the error still persists.
After restarting the machine my file can be saved again but only until I open it up in Chrome, then its completly locked.
This method of checking my written HTML Code in Chrome has been a standard procedure for me and it has been working perfectly fine for 2 - 3 months but since yesterday this problem occurs.
Things I have tried so far:
Exiting Chrome
Closing all handles running on the directory where the file is located
Running VS Code without extensions, running VS Code as administrator
Trying to save the file in NotePad
Restarting the machine (works but only until I open up the file in Chrome)
Deactivating web dev extenions in Chrome
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
so I have this website so far
https://imgur.com/a/o4T81MG
Looks like that. I want the play thumbnails to display video I have on my computer. I want to use my computer as a video host. I am trying to play around making a video sharing site. I plan on going down the google cloud route to host my videos but as of right now I wanted to know if its possible to use my own computer as a server to retrieve videos I have saved.
Here's one option...
Step 1: Serving the video
Super Simple Node.js Server
(install Node.js)
At a command-prompt:
Run npm install --global http-server.
Change into (cd) the directory where your videos are stored.
Run http-server.
Apache + GNU/Linux
Run a Linux VM on your computer (or use WSL if you're on Windows, or if you must install it directly follow these instructions: https://www.sitepoint.com/how-to-install-apache-on-windows/).
Install Apache (sudo apt-get install apache2 on Ubuntu; see https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-16-04).
Put your video in a directory such as /var/www/html or the equivalent for your platform (revisit the first two links for help).
Configure your new server to serve video correctly (https://stackoverflow.com/a/13341700).
Step 2: On the frontend...
Embed a element on your webpage pointing to the video on the server (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video).
🎉 You're all set up!
TL;DR: you need to serve the videos and then display them. If you want to add logic beyond that, consider building an Express web app.
You need to store your video files in a folder on a server, and then you need to reference them in your code. It's very simple to reference the videos when they are in a folder on a server.
see:
https://www.w3schools.com/html/html5_video.asp
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I want to download all the html, css and js files of the entire website in one click. I tried right-click and view source code but then I have to copy paste each page and create folder myself so its very tedious. Is there any open source software that helps do that or do i have to code it myself?
wget is your friend here and it works on windows, mac and linux.
wget -r -np -k http://yourtarget.com/even/path/down/if/you/need/it/
-r is recursive
-np (do not follow links to parent directories)
-k to make links in downloaded HTML or CSS point to local files
Other useful options:
-nd (no directories): download all files to the current directory
-e robots.off: ignore robots.txt files, do not download robots.txt files
-A png,jpg: accept only files with the extensions png or jpg
-m (mirror): -r --timestamping --level inf --no-remove-listing
Right Click > Save Page As
Will download all css and js/html.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
When I tried to source for a particular .sql file, namely 'registrar.sql', the following error is displayed:
Failed to open file 'registrar.sql', error: 2
I know that this means the below error:
#define ENOENT 2 /* No such file or directory */
However, I am not sure how to be more specific as I have tried entering 'source registrar.sql' and I have tried entering the absolute path. Now it is possible I am just entering the absolute path incorrect which is where I could use some help. Here is the path in properties in windows.
C:\Program Files\MySQL\MySQL Server 5.1\bin
File name is: registrar.sql
Any help on this would be appreciated.
Try like this:
mysql> source c:/dumps/mydatabase.sql
That is, use forward slash instead of back slash
You need to restart mysql if you have copied file after starting mysql server.
also if you have space in file or folder name you should use quotes.
I think that the sql process might not have read access to your directory anyway. In which case, you might have to copy the sql file to other accessible folder and tell mysql the absolute path.
Remove spaces in the folder names of the path, It worked for my mac path.
(Eg: change the folder name MySQL Server 5.1 to MySQLServer5.1)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have all the mysql .beam files needed for ejabberd. And I installed ejabberd via apt.
But when I try to copy those .beam files into /usr/lib/ebin directory and run ejabberd it echoes to ejabberd.log the following:
=INFO REPORT==== 2012-05-31 09:46:02 ===
application: ejabberd
exited: {bad_return,{{ejabberd_app,start,[normal,[]]},
{'EXIT',database_module_missing}}}
type: temporary
What I'm doing wrong?
What's the correct way of adding mysql drivers to ejabberd apt installation?
BEAM files used by ejabberd are located in a different place — try putting your files there.
As a side note: are you sure those BEAM files are really OK? Erlang is not too permissive when it comes to binary portability, so it's always advised to recompile the necessary code using the same release of Erlang as will run ejabberd on the target machine.
Check which triggers this ERROR is staightforward. It checks if hardcoded list of modules is in Erlang VM path. Make sure that odbc files are there and that they have proper file ownership. Required files are:
check_database_module(odbc) ->
check_modules(odbc, [odbc, odbc_app, odbc_sup, ejabberd_odbc, ejabberd_odbc_sup, odbc_queries]);
check_database_module(mysql) ->
check_modules(mysql, [mysql, mysql_auth, mysql_conn, mysql_recv]);
check_database_module(pgsql) ->
check_modules(pgsql, [pgsql, pgsql_proto, pgsql_tcp, pgsql_util]).