Postleaf / postleaf

Simple, beautiful publishing with Node.js.
https://www.postleaf.org/
MIT License
504 stars 204 forks source link

Errors during install (npm fails) #21

Closed venatoria closed 7 years ago

venatoria commented 7 years ago

Summary

NPM faills. Attached npm errors log npm-debug.log.zip

Additional info


Note: This issue tracker is ONLY for bug reports and feature requests. If this is a personal support issue, please ask on the forum instead: community.postleaf.org

lukewatts commented 7 years ago

Does this fail when you try running gulp build or is it npm install?

karsasmus commented 7 years ago

You're using node 4.2.6 (info using node@v4.2.6), but Postleaf needs node 7

venatoria commented 7 years ago

@lukewatts both, if you check the log, errors are generated in both phases. @karsasmus I updated and the npm install 2017-04-26T09_06_25_854Z-debug.log.zip still fails, attached the new log

lukewatts commented 7 years ago

Personally I had to install gulp, node-gyp and node-pre-gyp globally.

Then I had to rebuild the following packages (e.g. node rebuild node-sass):

Then run gulp build

karsasmus commented 7 years ago

Try to open your package.json, goto line 10 and change install to postinstall

venatoria commented 7 years ago

@lukewatts @karsasmus Hi and thank you for the replies. I did what you both recommended.. and the install worked (npm and gulp). But the app crashes with the following message :

Error: Postleaf failed to start! 🐛

SequelizeUniqueConstraintError: Validation error

lukewatts commented 7 years ago

I'm also stuck at this point. I've created a separate issue here:

22

venatoria commented 7 years ago

Saw it.. I will also see if I can figure it out. Any thoughts @claviska ?

claviska commented 7 years ago

Isn't install and postinstall the same thing? From the npm docs:

screen shot 2017-04-26 at 9 07 46 am

I couldn't find anything that says they're different, and install works for me so I'm not entirely sure. 🤷‍♂️

As mentioned in #22, I just released 1.0.0-alpha.2 which fixes the database issue (see #9).

If you were installing 1.0.0-alpha.1 instead of master, try alpha.2 and it should work. If you were using master, then I'm not sure why it didn't work short of a permissions issue.

Let me know if it works with alpha.2.

venatoria commented 7 years ago

@claviska Thanks for the answer.. I will try out alpha2 and see will keep you posted

venatoria commented 7 years ago

Hooray! Working and it's beautiful :) @lukewatts, @karsasmus @claviska thank you <3

I updated to alpha2 and added (+x to the permission, didn't change the user).