laktek / punch-blog

A boilerplate to create personal blogs based on Punch
MIT License
45 stars 14 forks source link

dependencies is needed in package.json #6

Closed teddychan closed 11 years ago

teddychan commented 11 years ago

when run punch p

it will get:


/usr/local/share/npm/lib/node_modules/punch/lib/utils/module_utils.js:42
                        raise(e);
                        ^
ReferenceError: raise is not defined
    at module.exports.requireAndSetup.load_module_from_paths (/usr/local/share/npm/lib/node_modules/punch/lib/utils/module_utils.js:42:7)
    at module.exports.requireAndSetup.load_module_from_paths (/usr/local/share/npm/lib/node_modules/punch/lib/utils/module_utils.js:40:14)
    at module.exports.requireAndSetup.load_module_from_paths (/usr/local/share/npm/lib/node_modules/punch/lib/utils/module_utils.js:40:14)
    at module.exports.requireAndSetup.load_module_from_paths (/usr/local/share/npm/lib/node_modules/punch/lib/utils/module_utils.js:40:14)
    at module.exports.requireAndSetup.load_module_from_paths (/usr/local/share/npm/lib/node_modules/punch/lib/utils/module_utils.js:40:14)
    at module.exports.requireAndSetup.load_module_from_paths (/usr/local/share/npm/lib/node_modules/punch/lib/utils/module_utils.js:40:14)
    at module.exports.requireAndSetup.load_module_from_paths (/usr/local/share/npm/lib/node_modules/punch/lib/utils/module_utils.js:40:14)
    at module.exports.requireAndSetup.load_module_from_paths (/usr/local/share/npm/lib/node_modules/punch/lib/utils/module_utils.js:40:14)
    at Object.module.exports.requireAndSetup (/usr/local/share/npm/lib/node_modules/punch/lib/utils/module_utils.js:47:4)
    at module.exports.setup (/usr/local/share/npm/lib/node_modules/punch/lib/site_generator.js:44:42)

the reason is the "punch-sitemap-generator dependencies is missing in the package.json

just add:

"punch-sitemap-generator": ">= 0.0.3",

in the file, the problem will be solved.