I'm having issues with the 'ng new [workspace-name-here]' command when I'm trying to just create a new Angular project. It just hangs at the "Installing packages (npm)..." text for several minutes, upto a half hour or longer in the few times I've tried it tonight. I never get beyond this point.
I hear it takes a notoriously long time, from nearly every stack overflow post or Udemy instruction over the last three or four years, but nothing's stuck.
I've tried running the command line as administrator, which was what my course I'm in suggested I do.
I've also found a few old Stack Overflow questions where people sounded like they had the same issue, but the provided solutions were more or less 'it takes time. Just wait it out'.
I've seen this question here: Angular 9 ng new stuck at installing packages which more or less says 'just wait it out. It WILL take a long time.', as well as the following on git, which says 'this is an issue with npm. Do something about your npm install'
https://github.com/angular/angular-cli/issues/3032
Turns out I was trying to run this command on an external harddrive I'd been dedicating to other projects- and this command didn't like being directed to the harddrive. Once I changed to B:/, it worked totally fine.
Related
So I have been learning about databases and I'm new to it. In my udemy course the video was outdated for the installation of MngoDB version 6.0.1. The video instructor showed a way to install it using the vim editor. However it didn't work for me. Then I discovered that many people are going through the same problem and a guy told a solution to delete the file created with vim and instead use "system environment variable". I edited the path by adding a new one in which I did exactly as the guy mentioned to specify the 'bin' folder inside mongoDB in the Program files. And when I tried to run the 'mongod' command inside hyper I got this at the last line.
{"t":{"$date":"2022-09-09T10:05:27.885+05:30"},"s":"I", "c":"NETWORK", "id":23016,
"ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
The instructor did mention that I should see something like "Waiting for connections at port 27017". However the last line in hyper doesn't explicitly mention it in one line, but I think that's fine. Because the instructor was using a mac and I am using a Windows device. Now here comes the main error. When I open a new tab in Hyper and type 'mongo', I get this error
$ mongo
bash: mongo: command not found
I've researched a lot on stackoverflow but nothing helped me in the end. However I can provide with something that might help in figuring out the solution. Here's something unusual that I noticed. The 'bin' folder in C:/ProgramFiles/MongoDB/Server/6.0 seems to contain very few files. It has only 2 .exe applications namely - 'mongod.exe' & 'mongos.exe'. There is no 'mongo.exe' that my instructor has on her computer. I think this might be the root of the problem, however I'm not sure. also there are other files that seem to be missing. But I would like to mention that I've not tampered the files even once since I've installed them from the setup. I hope this is enough for you guys to solve this. Please help me.
I am very new to coding, currently taking Harvard's CS50x class online. The extent of my familiarity with code, languages, and environments is what they've taught me so far in C. With vague guidance from other questions on this site, I've taken about 4 days to install gperf, from discovering what Cygwin is to installing all of its libraries and error-checking the installation all the way up to finding out where it finally put the installed program. I was so happy when I actually found the application 'gperf.exe' just now. I thought I was finally just about to get the hash function I've been trying to make for almost a week.
And now, the program does nothing but hang every time I try to run it, no error messages. Offering no input file causes it to hang. Doing any amount of and selection of options specified in the manual, it just hangs. Even debugging says it's entering debugging, then just hangs. The only way I've been able to get the program to respond at all is offering it an invalid input file, which it says is invalid. Nothing else does anything; no output file, no command-line response, nothing. I am frustrated to the point of tears, and the documentation provided with gperf assumes you're a professional coder, talking endlessly about the hundreds of high-level customization options to modify the program, but not a word about how to make it just run on a basic level. I've searched Google and this site extensively, and very little pops up as soon as I search for gperf related issues specifically.
Can anyone please just walk me through how to make this program work? I'm sure it's some stupid little thing that I'm missing, but all I want it to do is take my input file of strings and give me a hash function in C. Any and all help is appreciated, I have absolutely no clue what I'm doing and even installing gperf was a multi-day process that is far beyond the scope of what I've done so far.
Thank you.
EDIT:
Executions I've tried passing:
gperf
./gperf
Arguments I've tried passing:
-a
-c
-d
--output-file 'FILE'
I have tried all of these with and without the inclusion of my input file, named 'keys' and 'keys.txt'. The only thing that has generated any response from the program has been giving it an incorrect input-file name, giving the result 'could not load input file 'keys''.
gperf can be slow if the input file you give it is large, that is, contains many keys. You can get an impression of what are "small" files vs. "large" files by looking at the documentation: Known bugs and limitations.
I was in a coding bootcamp last year and have not used vsc in a good while since, but am trying to get back into coding and am making a react app. I tried making a new react-app as i would in the past, but it could not make a template due to being outdated? i tried 'npm uninstall -g create-react-app' as suggested by most then just trying to create it again. problem being when i do i get lines of ERR one of which says,
"The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user"
i have tried anything, anything safe, i can find but nothing will give me access. what exactly is this? i am logged in as i just did and even said lat log in at so and so time meaning my user account is logged in. anything helps, but i guess i missunderstand what is happening here as i am not totally well versed in much of this yet. thank you for your time and helping a newbie out!
Windows 7 64-bit.
OracleXE installed since February.
Oracle instantclient 11.2 installed as well, so I have both c:\oracle\ and c:\oraclexe.
I use SQLPlus every day.
It's location is C:\oraclexe\app\oracle\product\11.2.0\server\bin\sqlplus.exe
I have not changed my environment variables during this 6 month period.
Yet, suddenly, SQLPlus stopped working. Permanently. Even after reboots:
Error 6 initializing SQL*Plus
SP2-0667: Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
Now there are TONS AND TONS of pages of people discussing this exact problem. Every single solution involves setting ORACLE_HOME. None of these fix my problems. In fact, ORACLE_HOME was not an environment variable at any point between February and today!
These pages are all repeats of each other, and I've satisfied every solution condition on every one of those pages to no avail. And they are almost wholly about people who JUST installed Oracle.
But what about me? My install was perfect for 6 months, and just rotted away one day without me changing anything.
1) I've done the set ORACLE_HOME=c:\oraclexe\app\oracle\product\11.2.0\server\ to no avail. I've also taken about 10 shots in the dark with setting it to different levels in that path (like c:\oraclexe), but everything I've read suggestions it should point to the server folder.
2) I know it's not a path problem because I have no problem running SQLPlus. The error is generated by SQLPlus.
3) I've tried set LANG=us {even though I didn't need this at any point in the past}
4) I've even tried set NLS_LANG=American_America.we8iso8859p15 to no avail.
5) Yes, sp1us.msb is indeed at: C:\oraclexe\app\oracle\product\11.2.0\server\sqlplus\mesg\sp1us.msb
6) I've even used Sysinternals Procmon to see where SQLPlus.exe is looking. It's a lot of output to wade through and I'm not too familiar with the tool, but it seems to indicate that SQLPlus is looking for the file... Right where it is! So why can't it find it?
7) I don't think it's file permissions. Ran fine for 6 months. I've ensured that I own the files via takeown and icalcs -- but only after the problems started.
8) It's not antivirus.
Twice I've mucked around and managed to get it run correctly, and both times it only ran once and stopped working correctly. So I could never verify a step that consistently got it to work. It makes no sense to me that it would run once, but not twice - It's almost as if SQLPlus itself is changing the environment to prevent SQLPlus from working.
I found the problem!
I was setting an environment varaible SQLPLUS in my own script.
I was using it for non-Oracle-specific purposes.
I guess I collided with a variable they wanted to use.
Strangely, I've been using this script (a sqlplus.bat that forks to different sqlplus behavior) for 2 years, and my choice in temporary environment variable only presented a problem this week.
Very odd!
I just discovered this problem today, and I had no idea what caused this problem. My project had been developed for few months.
I have a project(solution), with several projects in there, it works well if I write and debug, by pressing F5.
The problem occur is when I press Ctrl+F5 (to skip debug mode), or run directly from double click the exe, it crashed. The errors dialogs that pop up every times are different, but OutOfMemoryException is the most frequent one.
I had checked to make sure all my projects are .Net 3.5
I put a MessageBox.Show("something") at the beginning of my main project constructor, but it never reach.
I use some registry cleaner to clean/fix my registry, scan for viruses.
I had try to read the meaning of each error and exception, but still no clue why it happen.
These are a series of screenshots if I press Ctrl + F5. (FutureGenerator is some random name I gave to my project.)
Series of screenshot if I run the app from my debug folder, FutureGenerator.exe
I suspect this is caused by framework crashed during Windows Update, but I removed those update that I performed recently, still same. The exe file works on other non development PC, but I don't want to reformat my PC or reinstall my VS, yet, because it's a painful process.
Any idea, anyone?? Million thanks.
You mention v3.5 but the very first screenshot is about v4.
Try repairing your Framework 4 and/or VS2010
I found the problem. It's actually because I added FutureGenerator.exe into Application Verifier by Microsoft. The verifier only support debugging testing.
After I removed FutureGenerator.exe from the Application Verifier, everything's ok.