Coder Social home page Coder Social logo

Comments (9)

jasonday avatar jasonday commented on August 24, 2024 1

Same issue for me trying with both npm and yarn.
Windows 10
npm 6.4.1
node 10.14.2

C:\Users\jday\Documents\GitHub\one-click-hugo-cms>yarn start
yarn run v1.12.3
$ gulp server
[23:17:50] Failed to load external module @babel/register
[23:17:50] Requiring external module babel-register
assert.js:350
    throw err;
    ^

AssertionError [ERR_ASSERTION]: Task function must be specified
    at Gulp.set [as _setTask] (C:\Users\jday\Documents\GitHub\one-click-hugo-cms\node_modules\undertaker\lib\set-task.js:10:3)
    at Gulp.task (C:\Users\jday\Documents\GitHub\one-click-hugo-cms\node_modules\undertaker\lib\task.js:13:8)
    at Object.<anonymous> (C:/Users/jday/Documents/GitHub/one-click-hugo-cms/gulpfile.babel.js:25:6)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at loader (C:\Users\jday\Documents\GitHub\one-click-hugo-cms\node_modules\babel-register\lib\node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (C:\Users\jday\Documents\GitHub\one-click-hugo-cms\node_modules\babel-register\lib\node.js:154:7)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

from one-click-hugo-cms.

erquhart avatar erquhart commented on August 24, 2024

@jaegz there have been a few updates since you posted this, can you confirm whether its still an issue?

from one-click-hugo-cms.

jaegz avatar jaegz commented on August 24, 2024

@erquhart thanks I'll give this another go and get back to you

from one-click-hugo-cms.

vorcigernix avatar vorcigernix commented on August 24, 2024

Similar on OSX with node 10. Using node v10.5.0 (npm v6.1.0). Yarn does not work at all, npm show a several warnings and security vulnerabilities, but somehow works. Is there any branch I should switch to?

from one-click-hugo-cms.

erquhart avatar erquhart commented on August 24, 2024

Just updated and ran locally with yarn and didn't encounter any problems. Using OSX, Node 10.13.0, npm 6.4.1 and yarn 1.12.1.

from one-click-hugo-cms.

erquhart avatar erquhart commented on August 24, 2024

Really want to help, but need a way to reliably reproduce, seems to be an environment issue so far.

from one-click-hugo-cms.

coryalini avatar coryalini commented on August 24, 2024

Running into the same issues with yarn 1.13.0, npm 6.8.0 and node 11.8.0 on osx. Has anyone found any solutions?

from one-click-hugo-cms.

numbfall avatar numbfall commented on August 24, 2024

The error you got after doing npm install gulp is due to gulp dependency upgrading gulp to gulp 4.0.0.

one-click-hugo-cms will not work with gulp 4. More specifically the gulpfile.babel.js is not written to work on gulp 4.

Try and revert gulp to version 3 "gulp": "^3.9.1", in package.json. See if the problem persists. Refresh the node_modules folder if possible

from one-click-hugo-cms.

GuzhengAlive avatar GuzhengAlive commented on August 24, 2024

I have also been seeing this issue but environment/system dependent. I did get it running on a windows 10 machine by uninstalling NVM, Node, and NPM, then reinstalling only node and npm. I wish I followed the steps I took but did not. Meanwhile my OSX system continues to error out. Using gulp 3.9.1 got farther in the process but hit the error:

[18:53:41] 'js' errored after 44 ms
[18:53:41] WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.module has an unknown property 'loaders'. 

And then various others. Just offering my experience.

from one-click-hugo-cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.