Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
What is the real purpose of installing composer and node.js, and the npm install?
composer is the dependency manager for php laravel framework. Look at this link for more infomation on this: https://www.tutorialspoint.com/laravel/laravel_installation.htm
Node js : like #ceejayoz said, it is not mandatory for laravel but may be needed to hook up some external tools.
If by non install you meant npm install, npm is the package manager for node js (npm stands for nodejs package manager). This is a tool that lets you install several packages that work with nodejs. According to the npm website, npm lets you discover and re-use over 470,000 free code packages in the npm Registry.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I've been install 2 libraries into my php project. Now I want to remove on of them because I've install the wrong library (my bad). Is it okay if I just delete the folder ? If there is another way to do that correctly, please tell me.
Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately.
composer remove vendor/package
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm following the Laravel passport video tutorial on Laracasts and kept getting the below error, so I have taken a fresh install of Laravel using the Laravel install tool but I'm still getting the error:
laravel new test
cd test
gulp
Error: Entry module not found: Error: Can't resolve 'buble' in 'C:\xampp\htdocs\test' resolve 'buble' in 'C:\xampp\htdocs\test
This is a fresh install with no changes, am I missing something from the install process?
I'm pretty sure you need to do npm install before using gulp.
Bublé is a ES2015 compiler (light version of Babel).
They come with Laravel, but you must previously install them, via npm install.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
In our company we currently do not use composer, we just download and store all libs under git.
What arguments can be given to our customers and system administrators to convince them of the need to use composer?
Our request must be substantiated enough to make a decision.
With Composer you get the following advantages:
The dependencies required by the package you are pulling in are automatically taken care by Composer itself, leaving you free to focus on the programming instead of dependency management.
When the package you are using gets a new version, a simple composer update will do everything for you without ever needing to do any file management manually.
With Composer you get a centralized autoload.php file which also be optimized for production. It loads everything you need and all you need to do is include one file. The optimized version is super fast! Simply do composer dump-autoload -o.
You can use psr-4 namespaces to load a specific path on your application and have it be included in the autoloader file. Then you can simply use the namespace and it's available application wide!
Look at the following URL for a more detailed list of features: https://getcomposer.org/doc/01-basic-usage.md
There are a lot more things you can do with Composer and it's wonderful. I highly advise that you guys use it and stop wasting time on managing packages yourself.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
How to work with non laravel packages as i want to use https://packagist.org/packages/kerphi/phpfreechat this packages
You can use the simple composer functionality. Via commandline run:
composer require kerphi/phpfreechat
That's it the package classes should now be available within your application.
You can view the complete documentation on loading packagist dependancies on the composer website.
update
You won't be able to use this package as the package requires the slim framework. You can see this on the package github page: https://github.com/kerphi/phpfreechat and the index file called during javascript usage: https://github.com/stmolivier/phpfreechat/blob/master/server/index.php
If you are using windows then In cmd go to your project location and run this code
composer require kerphi/phpfreechat
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to install the capybara gem on OS X. The issue is I am running MAMP, and do not wish to run rails due to potential conflicts. How can i install a gem? Where would a Gemfile even be without a application folder?
I don't know what kind of conflicts you expect from running Rails app and MAMP.
But if you have ruby install on your mac then you simply can install gem with:
gem install capybara
Although I can't understand how would you use it out of rails app environment.
RVM will be definitely better.
After you will install RVM run this:
rvm use 2.2.0#my_gemset --create
gem install capybara