You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed. What was missing is npm install in the root to install dotenv and other dependencies. Now, having cptname.php file created.
This is for anyone who may have gotten into this error.
npm install
docker-compose up -d
npm run scaffold:cpt <cptname>
WARNING: wp cli not installed, trying auto install ...
SUCCESS: wp cli installed!
done!
SUCCESS: Post type <cptname> created.
I am trying to scaffold a custom post type with
npm run scaffold:cpt <cpt name>
command.I am making sure to set up the
.env
file in the same main directory asdocker-compose.yml
as mentioned in the guide. I tried both options :a)
docker-compose down
before creating.env
manually followed by `docker-compose up -d.b) using
npm run env
However both ways gives me Error: Cannot find module 'dotenv'.
Is there anything I am missing? Thanks.
The text was updated successfully, but these errors were encountered: