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
Damian$ yo yo-wordpress:plugin
[?] Name of the plugin: myPlugin
[?] Author Name: me
/usr/local/share/npm/lib/node_modules/generator-yo-wordpress/plugin/index.js:78
if (err) throw err
^
Error: ENOENT, open 'app/wp-content/plugins/myPlugin/myPlugin.php'
The main issue is the fs.rename()'s dont check the err callback, which does contain an error. I have tried to fix it but without success so I wondered if it is only my system or if it works for others. The first fs.rename seems redundant as the remote.directory() call earlier on put the plugin in the correct directory already but the second fs.rename fails still anyway.
Patching editFiles with return cb() to trigger an immediate return and see the paths created:
The main issue is the fs.rename()'s dont check the err callback, which does contain an error. I have tried to fix it but without success so I wondered if it is only my system or if it works for others. The first fs.rename seems redundant as the remote.directory() call earlier on put the plugin in the correct directory already but the second fs.rename fails still anyway.
Patching editFiles with return cb() to trigger an immediate return and see the paths created:
The text was updated successfully, but these errors were encountered: