Install new modules error

25 views
Skip to first unread message

Marco Stranieri

unread,
Oct 4, 2016, 5:44:09 PM10/4/16
to apostrophenow
Hello,
when I try to install new modules, I gave this error:

MacBook-Air-di-Marco-Stranieri:raven mstranieri$ node app

/Users/mstranieri/Documents/sites/raven/node_modules/moog/index.js:313

          if (key.substr(0, 2) === '__') {

                  ^


TypeError: key.substr is not a function

    at /Users/mstranieri/Documents/sites/raven/node_modules/moog/index.js:313:19

    at Function.forEach (/Users/mstranieri/Documents/sites/raven/node_modules/moog/node_modules/lodash/dist/lodash.js:3298:15)

    at applyOptions (/Users/mstranieri/Documents/sites/raven/node_modules/moog/index.js:309:11)

    at /Users/mstranieri/Documents/sites/raven/node_modules/moog/index.js:226:15

    at iterate (/Users/mstranieri/Documents/sites/raven/node_modules/moog/node_modules/async/lib/async.js:146:13)

    at Immediate.<anonymous> (/Users/mstranieri/Documents/sites/raven/node_modules/moog/node_modules/async/lib/async.js:157:25)

    at runCallback (timers.js:574:20)

    at tryOnImmediate (timers.js:554:5)

    at processImmediate [as _immediateCallback] (timers.js:533:5)



In my app.js, for example, I've added this:

'apostrophe-blog-2': {},

What's happened?

MacBook-Air-di-Marco-Stranieri:raven mstranieri$ npm -v

3.10.3

MacBook-Air-di-Marco-Stranieri:raven mstranieri$ node -v

v6.6.0




Tom Boutell

unread,
Oct 4, 2016, 5:50:15 PM10/4/16
to apostr...@googlegroups.com
Hello Marco,

This Google Group has been deprecated. Please post Apostrophe
questions to stackoverflow.com using the "apostrophe-cms" tag, which
will bring them right to our attention. There is also a forum for
general apostrophe discussion (not how-to questions) at
forum.apostrophecms.org.

Thanks!

P.S. I won't hold out on you though: apostrophe-blog-2 is not for
Apostrophe 2.x (I know, the name is a little confusing, it's a
historical thing).

Check out the apostrophe-blog module which has been updated for 2.x.
> --
> You received this message because you are subscribed to the Google Groups
> "apostrophenow" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to apostropheno...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--


THOMAS BOUTELL, SUPPORT LEAD
P'UNK AVENUE | (215) 755-1330 | punkave.com

Marco Stranieri

unread,
Oct 5, 2016, 3:54:32 AM10/5/16
to apostrophenow
Hi Thomas,
thank you so much! I've also tried apostrophe-blog with successfully installation, but when I try to edit a blog post I've got an error like (item not found).

I'll use StackOverflow as you tell me,

thank's :-)

M
Reply all
Reply to author
Forward
0 new messages