carlitoplatanito / gulp-nunjucks-render

[Gulp](https://github.com/wearefractal/gulp) plugin to render [Nunjucks](http://mozilla.github.io/nunjucks/) templates
149 stars 33 forks source link

Can't import v2.2.0 #62

Closed LeoIannacone closed 6 years ago

LeoIannacone commented 7 years ago

Hi, I can't import latest version.

[15:40:24] Error: Cannot find module 'gulp-nunjucks-render' from 'my-home-project'
jorupp commented 7 years ago

It looks like the NPM package may be missing the index.js file?

kristijanhusak commented 7 years ago

Anyone know the reason why there is no index.js file on npm package? Everything looks ok here on the latest tag https://github.com/carlosl/gulp-nunjucks-render/tree/2.2.0

revelt commented 7 years ago

@kristijanhusak I don't see anything wrong anywhere, but there is a list of steps that for example np performs upon publishing. If this was happening to me, I'd remove node_modules, then install deps npm i, then run tests, if all still fine, publish via np patch.

I don't see .npmignore, but maybe there's one on yours, turn on show hidden files and double-check.

Maybe something's dodgy on the version control side? I'll try to git clone and have a look via SourceTree.

revelt commented 7 years ago

@kristijanhusak check out https://www.npmjs.com/package/np

kristijanhusak commented 7 years ago

Version 2.2.1 is out. I tried installing it, index.js properly exists. @revelt thanks for the NP suggestion, it helped me out. I had too old version of npm, that's why issues occurred. Please test it out and see if everything is ok. Apologies one more time.

revelt commented 7 years ago

My templates do render fine on 2.2.1. There are differences now with Nunjucks v3, some of my content blocks are now empty but that's a different problem.

revelt commented 7 years ago

54 can be closed then?

kristijanhusak commented 7 years ago

I closed it. Can we close this one too?