- Requirement: Node.js must be installed. https://nodejs.org/en/
- Check that the version is at least 10.5.0:
node -v
- Installing this repository:
cd impatient-js-code/
npm install
- Checking that everything was installed correctly (the “t” is an abbreviation for “test”):
npm t installation_test.js
-
if you use 2 version node (because confict your projecct), I should you to use NVM https://github.com/creationix/nvm
-
install nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
-
install node nvm install 8.15.1 nvm install 10.15.3
-
change versi node nvm use 10 or nvm use node 10
nvm use 8
- check version node (used now) node -v
Each exercise/test file:
- mentions the command for running the exercise via a command line.
- gives instructions for solving the exercise.
- In this repository, TypeScript’s type checking is enabled for pure JavaScript, to help you with writing your code. In a few rare cases, type errors prevent you from writing valid JavaScript code (because, in pure JavaScript, you can’t use type annotations to fix them). Work-arounds:
- Add type annotations via JSDoc comments.
- Ignore type errors in the complete file: Put the following line at the beginning of the file.
// @ts-nocheck
- Ignore type errors in the following line:
// @ts-ignore