Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Generator npm install error #251

Open
seansheds opened this issue Apr 4, 2017 · 3 comments
Open

Generator npm install error #251

seansheds opened this issue Apr 4, 2017 · 3 comments

Comments

@seansheds
Copy link

seansheds commented Apr 4, 2017

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)

@Noviny
Copy link
Contributor

Noviny commented Apr 5, 2017

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?

@seansheds
Copy link
Author

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
Copy link
Author

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

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