- open a new Directory Project
- open with VS Code
- open a new file app.js
- open a new terminal
- npm init
- package name: (project) npmproject
- version: (1.0.0) 1.0.0
- description: Project
- entry point: (app.js)
- test command:
- git repository:
- keywords:
- author:
- license: (ISC)
- {
- "name": "npmproject",
- "version": "1.0.0",
- "description": "Project",
- "main": "app.js",
- "scripts": {
- "test": "echo "Error: no test specified" && exit 1"
- },
- "author": "",
- "license": "ISC"
- }
- {
- "name": "npmproject",
- "version": "1.0.0",
- "description": "Project",
- "main": "app.js",
- "scripts": {
- "test": "echo "Error: no test specified" && exit 1",
- "start": "node app.js"
- },
- "author": "",
- "license": "ISC"
- }
- Command: node app.js
- Test printed
- Command: npm start
-
[email protected] start
-
node app.js
-
Test