Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on running the command of npm run test:visual #44

Open
JacobWay opened this issue Dec 29, 2018 · 0 comments
Open

Error on running the command of npm run test:visual #44

JacobWay opened this issue Dec 29, 2018 · 0 comments

Comments

@JacobWay
Copy link

JacobWay commented Dec 29, 2018

When I clone the project, and run the command npm run test:visual in package.json from console, I get the error below:

> foundation-docs@0.2.1 test:visual /Users/somebody/project/foundation-docs
> gulp

(node:77316) ExperimentalWarning: The fs.promises API is experimental
[09:41:46] Using gulpfile ~/project/foundation-docs/gulpfile.js
[09:41:46] Starting 'default'...
[09:41:46] Starting 'build'...
[09:41:46] Starting 'pages'...
[09:41:46] Starting 'sass'...
[09:41:46] Starting 'javascript'...
[09:41:46] Supercollider: processed compatibility.html in 0.98 s
[09:41:46] Finished 'javascript' after 611 ms
[09:41:46] Supercollider: processed component.html in 0.02 s with sass, js
[09:41:46] Supercollider: processed index.html in 0.65 s
[09:41:46] Supercollider: processed kitchen-sink.html in 0.66 s
[09:41:47] Finished 'pages' after 961 ms
[09:41:47] The following tasks did not complete: default, build, sass
[09:41:47] Did you forget to signal async completion?
fs.js:140
  throw new ERR_INVALID_CALLBACK();
  ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:140:9)
    at Object.fs.writeFile (fs.js:1258:14)
    at /Users/somebody/project/foundation-docs/node_modules/supercollider/lib/buildSearch.js:62:8
    at /Users/somebody/project/foundation-docs/node_modules/mkdirp/index.js:48:26
    at FSReqWrap.oncomplete (fs.js:166:5)
[1]    77315 segmentation fault  npm run test:visual

I'm trying to solve this problem, and google the error. There are some information to tell the error is related to the gulp version. And I am trying to rewrite the gulpfile.js.

At the same time, I wonder anybody has met the problem, and has some resolution.

By the way, my gulp version is 4.0.0.
Thanks at advance.

My package.json file:

{
  "name": "foundation-docs",
  "version": "0.2.1",
  "description": "Common templates and utilities for the Foundation family documentation.",
  "main": "index.js",
  "scripts": {
    "test": "npm run test:unit",
    "test:unit": "mocha test/unit/*.js --compilers js:@babel/register",
    "test:visual": "gulp"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/zurb/foundation-docs.git"
  },
  "keywords": [
    "foundation",
    "docs"
  ],
  "author": "ZURB <foundation@zurb.com> (http://foundation.zurb.com)",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/zurb/foundation-docs/issues"
  },
  "homepage": "https://github.com/zurb/foundation-docs#readme",
  "engines": {
    "node": ">=6.4.0",
    "npm": ">=2.14.2"
  },
  "dependencies": {
    "cheerio": "^1.0.0-rc.2",
    "handlebars": "^4.0.12",
    "highlight.js": "^9.0.0",
    "inky": "^1.2.6",
    "js-beautify": "^1.6.2",
    "kebab-case": "^1.0.0",
    "marked": "^0.5.0",
    "mkdirp": "^0.5.1",
    "multiline": "^1.0.2",
    "querystring": "^0.2.0",
    "require-dir": "^1.0.0",
    "string-template": "^1.0.0",
    "strip-indent": "^2.0.0"
  },
  "devDependencies": {
    "@babel/core": "^7.1.2",
    "@babel/preset-env": "^7.1.0",
    "@babel/register": "^7.0.0",
    "autoprefixer": "^9.1.5",
    "browser-sync": "^2.11.1",
    "chai": "^4.1.2",
    "foundation-sites": "^6.2.0",
    "gulp": "^4.0.0",
    "gulp-concat": "^2.6.0",
    "gulp-load-plugins": "^1.2.0",
    "gulp-postcss": "^8.0.0",
    "gulp-sass": "^4.0.1",
    "mocha": "^5.2.0",
    "motion-ui": "^2.0.3",
    "node-sass": "^4.9.3",
    "panini": "^1.2.0",
    "rimraf": "^2.5.2",
    "striptags": "^3.1.1",
    "supercollider": "^1.4.4"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant