Getting issue when install composer into Laravel 7 - laravel-7

I want to install Laravel 7 Image Intervention using following command
composer require intervention/image
Getting Below errors see in image
I dont know why this happen? If anyone have idea then please let me know. Please help me in this

During the install process, composer is needing to use more memory that is available to it.
You can either increase this memory limit, or use a temporary environment variable to set/remove it.
Try COMPOSER_MEMORY_LIMIT=-1 composer require intervention/image
This will run the require process with no memory limit.

Related

Why can't I shutdown NSolid process? It's eating resources like nothing

After installing NSolid in a workshop to profile/debug dummy node apps, I've noticed a spike in CPU usage and, consistently, battery power consumption and cooling fan running near full speed.
As you can imagine, this was not sustainable. I tried first by killing the NSolid main process, but it kept on spawning nevertheless.
Is there any way to control the NSolid daemon process, for example, to prevent it from starting when user session starts, and also a graceful way to shut it down when it's no longer needed?
All I was left with was uninstalling. It was installed as keg-only, so I had to force uninstall dependencies first, like so:
brew uninstall nsolid-console --force
brew uninstall nsolid-cli --force
brew uninstall nsolid --force
Finally, after finding the process again on activity monitor and killing it, it was finally gone. Brute force as last resource.
I'm sure there must be a built-in mechanism that isn't intentionally made available to developers, or more likely I didn't dig deep enough in the public documentation. If anyone knows such literature, post links here by all means.
Related: should any relevant development tool's basic operation docs take more than 20 secs to find? It is my opinion that it shouldn't.
Could you please try reinstalling it again? we would like to properly diagnose this issue, please send us an email to support#nodesource.com to open a support ticket, we will be happy to assist you.
Regards,
Adrian

(Why) is it a bad idea to allow node sudo access with third party packages?

(I am not sure if this is the correct stack exchange forum to post this question; please let me know if you know a more appropriate forum.)
I am trying to install react-native on mac OSX and am receiving an error. This specific question is QnA'd here, and is also solved here. I am already using homebrew (per the example in the docs) and solution #3 failed for me. I am a bit hesitant to use sudo (as suggested in the first link) due to my inexperience. In the second link (above), a user stated:
sudo will solve this, but you should not be using that. This means
node was installed in the wrong way. You should try to uninstall node
and install it via homebrew. Allowing node sudo access with third
party packages is just stupid.
Instead of taking this statement at face value, I wanted to understand why this could be the case. What exactly does it mean to allow node sudo access with third party packages, and why is this a "stupid" idea?
(I think this question is better go to Unix & Linux StackExchange, but I am also not sure.)
The command sudo will gain a temporary root privilege on the executed command, which the executing program will have full control to the device. If a third party have some harmful action, it may cause a disaster if you give it the full access with sudo.
Besides, there has already been a report (a news report for example) about crypto-mining code inside several Node.js NPM packages. So this warning has a real history before.

Running an oracle (written in node.js) after compile/migrate contracts

I'm trying to write some tests for truffle, but I've realized that when running truffle test, before the test file is executed, truffle performs the compilation and migration of the contracts. For this reason, I need my oracle to be launched just after the migration because when launched it is waiting for events coming from a specific contract address.
Is there any way of launching the oracle programmatically and keeping it alive during the test? The command to launch it is simple, just something like node oracle.js --network=test
I guess my code is not needed for the question, but anyway, if you need to know any approach I'm following on the project feel free to ask about.
Thanks in advance.
You should be able to launch the oracle from any .js test file that requires the oracle to be running. You could likely accomplish this using a npm package such as forever.

Installing node.js/npm on external hard drive (Mac OS Mojave)

So I want to install node.js on my external hard drive so I can do some batch processing on images for my website. I was following this article and there's a section for converting images to webp with node. I've been trying to do that, but I keep having problems that I think are related to most of my files being on a 1tb external hard drive b/c my mac only has 250gb of space ($$ reasons). At the same time, I'm still confused about node.js and npm and how it all really works - as soon as I think I understand I find more info that puts me back at square one. I've really tried to do my own research re: errors that come up when installing node.js but it'd be really helpful if someone could simplify this process for me and help this 'lil noob who just wants to learn something new and more efficient.
tl;dr - My goal is to install node.js to process some images on an external hard drive on my mac and I want to do it smoothly and actually understand what's happening b/c the influx of information I'm getting from researching on my own is confusing me more than helping me :')
For reference, here's a link to a pic of what the terminal gives me after installing node.js and npm using this guide (here), and fixing an "no package.json found" error by running npm init and creating a package.json file. I'm currently following this and this to try and figure out what's wrong
(desc: terminal screenshot of a npm audit security report containing two moderate severity memory exposure vulnerabilities) 5

Not able to run meteor in cloud ide, need help to understand meteor memory usage

I’m new to both meteor and web frameworks [Core C/C++ developer].
When I tried meteor apps in cloud IDE (both cloud9 and Koding), sample apps runs fine. But, if I add twbs:bootstrap package, the IDE kills meteor (mongodb) due to insufficient memory (Cloud9 has 768MB and Koding provides 1GB).
Also noted that the disk space grows from 60mb initial to some 200+ mb, just for adding one package (twbs:bootstrap).
Hence, I’m not able to proceed further with meteor in cloud. Is it normal that meteor uses this much RAM and disk space? If so, why it uses such huge memory? This wouldn’t be problem for real production web apps?
Please guide me.
The first time you install a package, and start Meteor, it tries to update the package and Meteor (if there's a newer version). This can take up a lot more memory than usual. I have been able to get around this by running meteor update and then restarting the meteor server. Please note that sometimes even meteor update complains of being out of memory, but it should still complete. If it truly runs out of memory, it would say 'Killed' on the terminal. Contact support in this instance.
I have tried using the bootstrap package and have been able to make it work on Cloud9 workspaces using the technique above (Full disclosure, I work at Cloud9). We do try to keep the meteor version up to date due to this issue, but if you have an older workspace, you might still run into this issue each time meteor version increases.
The other thing I've noticed is that memory consumption tends to increase with each hot-reload. If the workspace starts complaining, simply shut the meteor server down and restart it. It should get back to normal levels.
Hope this helps!

Resources