Yo generator stuck to generate application for a long time - meanjs

When I am going to create an application in meanjs using yo meanjs it's stuck to for a long time.
D:\WorkShop\MEAN>yo meanjs
You're using the official MEAN.JS generator.
? What mean.js version would you like to generate? 0.4.0
0.4.0
? In which folder would you like the project to be generated? This can be changed later. mongoapp
Cloning the MEAN repo.......
? What would you like to call your application? mongoapp
? How would you describe your application? Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js
? How would you describe your application in comma seperated key words? MongoDB, Express, AngularJS, Node.js
? What is your company/author name? deep
? Would you like to generate the article example CRUD module? Yes
? Would you like to generate the chat example module? No
Running npm install for you....
This may take a couple minutes.
And then the following error is coming
Error: Command failed: cd mongoapp && npm install
.
.
.
.
etc
But I have installed nodejs

It looks like the yo generator had difficulties creating the mongoapp directory that's why the cd mongoapp command failed, OR you don't have nmp installed and the npm install command failed.

Related

how to run dotnet core's standalone program on mac

a rudimentary question, but please let me know.
I want to run the following program which will process and return the result by json when accessed by GET or POST.
FileManagerController.cs
For example, in PHP you just need to place it in the htdocs folder of Apache.
I would like to do the same thing with dot net core mvc.
but I don't know what kind of words to search.
Also, in the near future we would like ruby to work the same way in another project.(In a way that doesn't use a framework such as rails)
So, please tell me how to find out how to run various languages alone on a web server.
You need to make a "project" (file type .csproj) that you can build and run on your machine. Check out the Getting Started with ASP.NET page for instructions to install the SDK and create a new project and run it.
To run your code file above, you can:
$ dotnet new mvc
Copy the above FileManagerController.cs file into the generated Controllers folder.
$ dotnet run
Your app will be running on http://localhost:5000, you can hit your web site using the url /FileManager.

How to run an existing CakePHP project in xamp(localhost)

i have been assigned to a new project with Cake PHP to do some modifications on it, the project already exists and i'm having trouble run it, i don't know how to run the project on my xamp local server, should i download cakePHP in the project( if so, how to do it ?) or there are some commands i should run to get the dependencies of CakePHP and run the application ( if so, what are these commands). thanks in advance.
be sure that your php version >= 5.6.0
you should firstly install composer https://getcomposer.org/download/
then create new project by composer read the manual https://book.cakephp.org/3.0/en/installation.html
Or
- download the full project of Cakephp 3.0 https://github.com/cakephp/cakephp/archive/master.zip
- unzip the archive in /xampp/htdocs/
if you haven't, install composer https://getcomposer.org/download/
git bash into the directory then you can composer update
and all you need to do is go to localhost/

How to correct install and use plugin installed via composer

I installed a cakephp 3 app via composer from the root of my website c:wamp/www/my_app, and I developed untill i need to implement acl.
I installed the acl plugin for cakephp 3 via composer for the same path c:/wamp/www/myapp and i configured it, was everything well, but when i test the implementation of acl, i get the following error:
Missing Component, Create the class AclComponent below in file: src\Controller\Component\AclComponent.php
and seems to be true, theres no such file in the above location, instead the file is in vendor/cakephp/acl/src/controller/component.
Was investigating and i find that composer doesnt install plugins in a cake default path, theres many articles about, but how doi correct my installation? I already did all the stuff to implement the access control lists.
Thanks in advance error screenshot

Yo generator tries to make a brand new MEAN app when I try to use a subgenerator

So when I run
yo meanjs:crud-module foo
I get this
You're using the official MEAN.JS generator.
? What mean.js version would you like to generate? (Use arrow keys)
master
❯ 0.4.0
0.4.1
and it tries to take me through the process of cloning the sample meanJS app.
Why is it not behaving as a sub-generator?
Edit
I was using MEANJS 4.0, which the current YO generators do not support. I installed the in-development yo generators with
sudo npm install -g meanjs/generator-meanjs#0.4-dev
and now I can use the vertical-module subgenerator.
Did you create the project using the generator? Your project probably doesn't have a .yo-rc.json file so the generator doesn't know there is a yo project.
The 0.4.x generator is in progress.
Github repo

Install curl and json extension in laravel

I am creating a registration form, i want to add a google captcha to the form however i noticed that the package requires PHP 5.4 or greater and "ext-curl" and "ext-json" i have looked around to try and find out how to get these dependencies installed but i have found no solution, currently when i try adding the google captcha package to my composer.json and doing a composer.update i get an error then i have to take it out from my composer.jon file and re-run composer update to fix the error. I think it might have something to do with these 2 dependencies does anyone know how i can get them installed?
I use the inbuilt PHP server in Laravel on windows 7 platform.
Directly from easyphp administration, use test code:
<?php phpinfo();?>