Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing vendor/bin/phpcs file #637

Open
IngeFromHolland opened this issue Apr 12, 2020 · 4 comments
Open

Missing vendor/bin/phpcs file #637

IngeFromHolland opened this issue Apr 12, 2020 · 4 comments

Comments

@IngeFromHolland
Copy link

IngeFromHolland commented Apr 12, 2020

Issue Overview

When I start up Gulp, I get an error that there's a file missing, and it doesn't complete the tasks. I have tried from a fresh download several times, with composer installed globally and locally. I also added the line "squizlabs/php_codesniffer": "3.*" at the dev-requirements in the composer.json file.

Describe your environment

I'm using WP-Rig version 3 (I have tried the master as well, same result), MacOS Catalina (version 10.15.3), Visual Code 1.44.0, zsh command line.

Screenshots / Video

Screenshot 2020-04-12 at 01 59 07

Related Issues and/or PRs

@insight47
Copy link

I face the same issue on Windows. Error running npm run build:

Finished 'images' after 1.91 s
[16:34:30] 'php' errored after 5.92 s
[16:34:30] Error in plugin "gulp-phpcs"
Message:
    Cannot find "C:\wamp64\www\wprig.local\wp-content\themes\wprig-master/vendor/bin/phpcs"[16:34:30] 'buildDev' errored after 5.94 s

@insight47
Copy link

insight47 commented May 27, 2020

In /wp-content/themes/wprig-master, I ran npm install gulp-phpcs --save-dev, then edited composer.json to replace:

"phpcs-dev": "\"vendors/phpcs\"",

with

"phpcs-dev": "\"node_modules/gulp-phpcs\"",

then run npm run build, but I still receive:

[07:51:01] Error in plugin "gulp-phpcs"
Message:
    Cannot find "C:\wamp64\www\wprig.local\wp-content\themes\wprig-master/node_modules/gulp-phpcs"

The folder C:\wamp64\www\wprig.local\wp-content\themes\wprig-master/node_modules/gulp-phpcs contains:

phpcs

Help appreciated.

@insight47
Copy link

insight47 commented Jun 23, 2020

There is a missing step @ https://wprig.mor10.com/ (should be between steps 3 & 4): Run composer install in the terminal.

@alexwcoleman
Copy link

alexwcoleman commented Sep 26, 2020

Hi! Apologies for letting this sit for a while. The instructions on the WP Rig website are different than on the GitHub repo. I'll see about getting that changed. However, please follow the instructions on this repo. Point 3 (npm run rig-init) on the "How To Install WP Rig" guide should take care of composer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants