の作業を確認しながら、私はこの本を拾った「学習JavaScriptが - 。。あなたのウェブページにスパークルと生命を追加 予期しないトークン。一息
が、私はそれはgitのについて少し告げるセクションに達し、飲み込む私は何も知りません私は、これまで本から持っているものよりも。著者によって尋ねたように、私は、一気ファイルを作成した。ゴクゴクファイルに次のコードが含まれています。その後
const gulp = require('gulp');
//Gulp dependencies go here
gulp.task('default', function)() {
//Gulp tasks go here
});
、それはに尋ねコマンドラインでgulp
と入力してGulpが正常に機能していることを確認します(GITを使用していますbash。どのように違うのか分かりませんが、私は本当に圧倒されたくありませんので、私はその本を執筆しています)。
次のエラーが発生しました。
$ gulp
c:\Users\lespa\AppData\Roaming\npm\node_modules\gulp\node_modules\gulp-util\node_modules\array-differ\index.js:2
module.exports = (arr, ...values) => {
^
SyntaxError: Unexpected token .
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (c:\Users\lespa\AppData\Roaming\npm\node_modules\gulp\node_modules\gulp-util\lib\PluginError.js:2:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
誰でも助けてくれますか?
あなたはNode.jsの5.11.0以降にsupport the spread operator (...
)にアップグレードする必要があり
あなたの 'Node'のバージョンは? –
こんにちは、@strは私の注意書きにそれを持ってきました。私は古いバージョンを使用していました。ありがとうございました –