A
A
Alex Ander2017-06-14 17:29:07
Node.js
Alex Ander, 2017-06-14 17:29:07

How to start learning at codeschool.com?

Started the HelloCodeSchool project https://www.codeschool.com/projects/hello-code-sch...
Completed the first 4 steps
1. Authenticate with GitHub
2. Fork the Repo
3. Clone the Repo
4. Prepare the Build
And then stopped on the 5th point
5. Update the title
6. Add a Heading Element
7. Create an Unordered List
8. Add Your Skills
when you enter the npm test command , errors fall out that are not in the Answer Video.
Tell me how to proceed?

21:12:51 alex ~/dev/github/HelloCodeSchoolProject (master) $ npm install
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
21:17:24 alex ~/dev/github/HelloCodeSchoolProject (master) $ npm test
> [email protected] test /home/alex/dev/ github/HelloCodeSchoolProject
> mocha test/
/home/alex/dev/github/HelloCodeSchoolProject/node_modules/jsdom/lib/jsdom.js:3
() => `jsdom 7.x onward only works on Node.js 4 or newer: https ://github.com/t
^
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. (/home/alex/dev/github/HelloCodeSchoolProject/test/index_test.js:1:75)
at Module._compile (module.js:456:26)
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 /home/alex/dev/github/HelloCodeSchoolProject/node_modules/mocha/lib/mocha.js:220:27
at Array.forEach (native)
at Mocha.loadFiles (/home/alex/dev/github/HelloCodeSchoolProject/node_modules/mocha/lib/mocha.js:217:14)
at Mocha.run (/home/alex/dev/github/HelloCodeSchoolProject/node_modules/mocha/ lib/mocha.js:469:10)
at Object. (/home/alex/dev/github/HelloCodeSchoolProject/node_modules/mocha/bin/_mocha:404:18)
at Module._compile (module.js:456:26)
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 Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
npm ERR! test failed. See above for more details.
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
21:17:32 alex ~/dev/github/HelloCodeSchoolProject (master) $

d956d815649c4baba43efe1172ea1b55.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2017-06-14
@loktionov129

It looks like you have old nodejs. Refresh.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question