Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Initial setup not working #182

Open
selbekk opened this issue Jun 10, 2016 · 1 comment
Open

Initial setup not working #182

selbekk opened this issue Jun 10, 2016 · 1 comment

Comments

@selbekk
Copy link

selbekk commented Jun 10, 2016

Hi!

I'm having some trouble getting started.

Ran sudo npm install -g yo generator-wordpress, and got this error:

# Tons of install logs... and then:
npm WARN ENOENT ENOENT: no such file or directory, open '/usr/local/lib/node_modules/generator-wordpress/package.json'
npm WARN ENOENT ENOENT: no such file or directory, open '/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-environment/package.json'
npm ERR! code 1

When I tried to run yo wordpress I got this:

$ yo wordpress
module.js:339
    throw err;
    ^

Error: Cannot find module 'mkdirp'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/yo/lib/router.js:7:14)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)

What am I doing wrong? I'm running node v5.0.0 and npm v3.3.6

@apank
Copy link

apank commented Jan 21, 2017

You need to install the missing module -

sudo npm install mkdirp

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

No branches or pull requests

2 participants