I try to start the npm server related with this tutorial . I understood that I had to download npm and try (or had?) To download npm and try npm start
. However, he got errors when he started it.
mike@mike-thinks:~/Documents/programming/tutorial/javascript$ sudo npm install server drive-db
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
npm WARN saveError ENOENT: no such file or directory, open '/home/mike/Documents/programming/tutorial/javascript/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/mike/Documents/programming/tutorial/javascript/package.json'
npm WARN javascript No description
npm WARN javascript No repository field.
npm WARN javascript No README data
npm WARN javascript No license field.
+ [email protected]
+ [email protected]
added 270 packages from 285 contributors in 5.126s
mike@mike-thinks:~/Documents/programming/tutorial/javascript$ ls
index.js node_modules package-lock.json views
mike@mike-thinks:~/Documents/programming/tutorial/javascript$ npm start
npm ERR! path /home/mike/Documents/programming/tutorial/javascript/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/home/mike/Documents/programming/tutorial/javascript/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/mike/.npm/_logs/2018-11-24T09_20_12_336Z-debug.log
Without sudo:
I deleted the folder and then:
mike@mike-thinks:~/Documents/programming/tutorial/javascript$ npm install server drive-db
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
npm WARN saveError ENOENT: no such file or directory, open '/home/mike/Documents/programming/tutorial/javascript/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/mike/Documents/programming/tutorial/javascript/package.json'
npm WARN javascript No description
npm WARN javascript No repository field.
npm WARN javascript No README data
npm WARN javascript No license field.
+ [email protected]
+ [email protected]
added 270 packages from 285 contributors in 17.772s