generator-keystone icon indicating copy to clipboard operation
generator-keystone copied to clipboard

Generator npm install error

Open seansheds opened this issue 7 years ago • 3 comments

I just installed the latest version of the generator and I get the following error with npm install...

(node:2349) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. npm WARN deprecated [email protected]: letsencrypt-express has been renamed to greenlock-express and will now be maintained as such. npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v6.9.2 npm ERR! npm v3.10.9

npm ERR! Invalid name: "@types/express"

I'm using node version 6.9.2 and I chose the following options for the generator...

Templates: Nunjucks CSS Preprocessor: sass Include Blog: Y Gallery: Y Contact Form: Y User Model: User Email Config: Y mailgun API: mailgun domain: Cloudinary URL: Code Comments: Y

When I cd into the folder and run "node keystone" I get the following error...

module.js:471 throw err; ^

Error: Cannot find module 'dotenv' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/Users/sshedlarski/Repos/sean/calabrese/test/keystone.js:3:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3)

seansheds avatar Apr 04 '17 22:04 seansheds

Hi @seansheds, I just attempted this using node 6.9.2 and encountered no errors. Can you provide any more information about your environment? Version of yo generator, operating system?

Noviny avatar Apr 05 '17 04:04 Noviny

Thanks for looking into it @Noviny. Version of yo generator is latest - 0.5.1 and I'm on OS X 10.10.5

I listed all the generator options above so I'm not sure what other info would be useful. I did try uninstalling the generator and reinstalling but got the same result. I also thought maybe it was the template system I chose so I tried creating projects with both hbs and pug and got the same error.

seansheds avatar Apr 05 '17 16:04 seansheds

I just switched node to 6.10.2 and still got the same errors.

seansheds avatar Apr 05 '17 16:04 seansheds