Code: command not found

I did a fresh install of Ubuntu and after installing Yii2, etc. I can no longer run the encoding.

I am using Yii2. I need the latest version of codazis in composer.json, which works fine. But I can not find a way to run the code again.

I looked through all the manuals, but none of them had anything other than just a composer, or added it to the .json composer. I noticed that when I wanted to add code to my $ PATH, I do not have the code file in the root / vendor / bin / file, where, in my opinion, the $ PATH record should be indicated.

I don’t know where to go from here. Perhaps I missed some step? Just to summarize:

  • codeception (yiisoft / yii2-codeception).
  • root / vendor / bin / does not contain anything that indicates encoding.
  • command: codas start command returns: codecept: command not found
  • command: (./)vendor/bin/codecept return: "path": no such file or directory.
+5
source share
2 answers

codecept: command not found in Ubuntu, you must follow these steps:

 sudo composer global require "codeception/codeception=2.1.*" "codeception/specify=*" "codeception/verify=*" 

and then run the following command:

 sudo ln -s ~/.composer/vendor/bin/codecept /usr/local/bin/codecept 

So codecept build and codecept run will work.


If you are using Windows, run this command:
 composer global require "codeception/codeception=2.1.*" "codeception/specify=*" "codeception/verify=*" 

Add this line to your path:

 ~\AppData\Roaming\Composer\vendor\bin 
+6
source

You must add the global composers binaries to your PATH.

For local development, I use Vagrant, here is an example for it:

 export PATH=$PATH:/home/vagrant/.composer/vendor/bin 
+2
source

All Articles