node.js - grunt --tasks error path.js:488 throw new TypeError('Arguments to path.join must be strings') -
my node v0.12.7
, , grunt grunt-cli v0.1.13 grunt v0.4.5
.
the following dependencies in package.json
.
"bower": "1.3.8", "grunt": "0.4.5", "grunt-bower": "0.18.0", "grunt-cachebuster": "0.1.5", "grunt-check-dependencies": "0.3.1", "grunt-cli": "0.1.13", "grunt-connect-proxy": "0.2.0", "grunt-contrib-clean": "0.5.0", "grunt-contrib-compress": "0.10.0", "grunt-contrib-connect": "0.5.0", "grunt-contrib-copy": "0.5.0", "grunt-contrib-cssmin": "0.9.0", "grunt-contrib-jshint": "0.11.0", "grunt-contrib-requirejs": "0.4.4", "grunt-contrib-watch": "0.5.3", "grunt-git-describe": "2.3.2", "grunt-karma": "0.10.1", "grunt-replace": "0.8.0", "grunt-requirejs": "0.4.2", "grunt-shell": "0.6.4", "grunt-version-copy-bower-components": "^0.1.11", "jasmine-core": "2.2.0", "karma": "0.12.31", "karma-chrome-launcher": "0.1.7", "karma-jasmine": "0.3.5", "karma-phantomjs-launcher": "0.1.4", "karma-requirejs": "0.2.2", "karma-spec-reporter": "0.0.12", "load-grunt-config": "0.13.2", "path": "^0.11.14", "requirejs": "2.1.16", "shelljs": "0.3.0"
and following gruntfile.js
require('load-grunt-config')(grunt, { configpath: path.join(process.cwd(), 'tasks') })
i search many materials told me have fixed it. me it?
my error stacks
typeerror: arguments path.join must strings @ object.posix.join (path.js:488:13) @ object.file.exists (/users/zwshao/rea/widgets_new/node_modules/grunt/lib/grunt/file.js:381:28) @ task.loadtasks (/users/zwshao/rea/widgets_new/node_modules/grunt/lib/grunt/task.js:371:18) @ array.foreach (native) @ task.task.init (/users/zwshao/rea/widgets_new/node_modules/grunt/lib/grunt/task.js:457:33) @ object.grunt.tasks (/users/zwshao/rea/widgets_new/node_modules/grunt/lib/grunt.js:120:8) @ object.module.exports [as cli] (/users/zwshao/rea/widgets_new/node_modules/grunt/lib/grunt/cli.js:38:9) @ object.<anonymous> (/usr/local/lib/node_modules/grunt-cli/bin/grunt:45:20) @ module._compile (module.js:460:26) @ object.module._extensions..js (module.js:478:10) @ module.load (module.js:355:32) @ function.module._load (module.js:310:12) @ function.module.runmain (module.js:501:10) @ startup (node.js:129:16) @ node.js:814:3
Comments
Post a Comment