I can not create a lumen project - lumen

I have just installed composer and I have added this path where it is "~/.composer/vendor/bin" to my $PATH in OSX. But when I try this in terminal: >lumen new blog I get "-bash: lumen: command not found".
Any idea please?

I have created the project with this other command "composer create-project --prefer-dist laravel/lumen first app" but I don't know why I can not execute the lumen command

Related

getting "command not found: phalcon" after successfully installing phalcon/devtools via composer

Software: MacOS
Phalcon: 5.0.0RC4
Phalcon/Devtools: 4.2.0
I have newly created phalcon 5.0 repository.
I successfully ran
composer install
composer require phalcon/devtools
however when I try to run a phalcon command I get
zsh: command not found: phalcon
I checked if it had installed successfully and tried reinstalling as well.
php -m returns that phalcon is installed too:
php -m | grep phalcon
phalcon
and the extension is there in the php.ini file
extension="phalcon.so"
Am I missing anything?
The phalcon/devtools package links the phalcon.php executable to your composer bin-dir.
Get it as follows:
composer config bin-dir
It defaults to ./vendor/bin. The installed symlink is ./vendor/bin/phalcon.php.
You can run the command as follows:
./vendor/bin/phalcon.php [..]
To ease access you can automatically add ./vendor/bin to your PATH (i.e. with direnv)
# .envrc
PATH_add ./vendor/bin
or you can create a ./bin dir in your project directory and symlink phalcon.php as phalcon into it.
mkdir ./bin
ln -sfn ./vendor/bin/phalcon.php ./bin/phalcon
Now you can add ./bin to your PATH:
export PATH="${PWD}/bin:${PATH}"
And invoke the phalcon CLI with:
phalcon [..]
Adding to Nicolai's answer, it is also possible to just call phalcon like so:
vendor/bin/phalcon commands
In my case, I didn't want to be able to call phalcon globally so I copied the file into the project directory and named it phalcon4
Then I edited the paths inside the file like so
$addpath = '/vendor/phalcon';
$GLOBALS['_composer_bin_dir'] = __DIR__ .$addpath;
$GLOBALS['_composer_autoload_path'] = __DIR__ .$addpath. '/..'.'/autoload.php';
// the rest of the code
include __DIR__ .$addpath. '/..'.'/phalcon/devtools/phalcon';
Now I can run the command like this:
php phalcon4 commands
Still, devtools 4.2 cannot run with phalcon 5 so the command just threw an error.

Missing Module in gulpfile 'clone-stats'

I am working with ionic and my ionic build android command isn't working.
The error message I get is "Uh oh! Looks like you're missing a module in your gulp file: Cannot find module 'clone-stats'
Do you need to run 'npm install'?
I highlighted my steps in the image below:
I have no idea what 'clone-stats' is and why it is missing. It was working yesterday.
I have tried to reinstall ionic. I tried npm install -g. I tried removing and adding the android platform back. ionic serve gives me the same error.
I am not familiar with gulp. Does anybody know the problem?
Thanks.
You have required to install 'clone-stats' module.
open terminal
go to your project folder and type npm install clone-stats.
if you facing permission error then use sudo npm install clone-stats
hope it's work for you..

Sipp with pcap installation on windows

I am trying to install sipp with pcap-replay on winows7.
I have installed cygwnin, libncurse, and winpcap. I was trying to patch cygwin with IPv6 using the URL http://cygwin.win6.jp/cygwin-ipv6/, but it couldn't get the setup.ini file.
So I copied to local directory and upgrade, but it said no new updates.
And if I try to complie sipp. it gives error
$ ./configure.ac --with-pcap
./configure.ac: line 3: syntax error near unexpected token [SIPp],'
./configure.ac: line 3:AC_INIT([SIPp], [3.3], [sipp-users#lists.sourceforge.net], [sipp])'
Could anyone help me in getting sipp be installed on windows?
I download sipp.3.3.990 it has ./configure and was able to install on Linux.
But now on windows it still fails saying ncurse is not present. But I have downloaded it.
How do I troubleshoot it from here?
You can follow below steps to generate configure from configure.ac.
$> autoreconf -i
Now, you will see a configure file created at the same location.
To run the above command, following packages are required: automake,ncurses-devel,libncurses,M4 and autoconf.
if any of the above packages are missing run the cygwin setup file again and select the packages on the package selection screen and click install.

Install ionic framework.

I have installed the module with node version v0.10.22
sudo npm install -g ionic
But know when I am trying to start an new application I am getting a
-bash command not found
which ionic
gives me nothing, do I have to add the path to on the $PATH variable ?
How did you installed npm? If you used homebrew then npm won't put npm files accessible by users.
Add export PATH=/usr/local/share/npm/bin:$PATH to your .bashrc/.bash_profile/.zshrc file and it should work fine.
Also refer this: Bower: "command not found" after installation

protractor cant find cli.js file

I just installed protractor and the default repo along with webdriver. Every time I run protractor I get this error
module.js:340
throw err;
^
Error: Cannot find module '/usr/local/lib/node_modules/protractor/lib/cli.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
Not sure how to fix this... any clues?
Try to use the following solution :
under Configuration , use this for javascript file = /usr/lib/node_modules/protractor/lib/cli.js
I faced similar issue , it got resolved . I am using WebStorm in linux environment .
Make sure you installed protractor on the global position , by using this command :
sudo npm install -g protractor
sudo webdriver-manager update
webdriver-manager start
Got stuck similarly ... this worked for me.
Make sure to have "node_modules" & "node_modules/.bin" in the project folder, you can generate them by
running "npm install protractor" on the project root folder and then get rid of it "protractor" folder by running "npm uninstall protractor".