I need to install
angularjs-dragula ng2-dragula react-dragula
At first I had the error:
C:\Users\email\Desktop\Parafernalia Test> npm install angular js-dragula --save
npm WARN saveError ENOENT: no such file or directory, open 'C:\User\email\package.jason'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\email\package.json'
npm WARN email No description
npm WARN email No repository field.
npm WARN email No README data
npm WARN email No license field.
[email protected] added 7 packages from 3 contributors and audited 8 packages in 24.066s
I created the file in the project folder - package.json
I ran the command again and the error now is:
C:\Users\email\Desktop\Parafernalia Teste>npm install angularjs-dragula --save
npm ERR! file C:\Users\email\Desktop\Parafernalia Test\package.json
npm ERR! code EJSONPARSE
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected end of JSON input while parsing near ''
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
npm ERR! A complete log of this run can be found in
npm ERR! C:\Users\email\AppData\Roaming\npm-cache\_logs18-07-05T13_59_46_328Z-debug.log
This same error occurs when I try the command to install react-dragula
My package.json file is empty.
Can anyone help me?
PS: Dragula is a js library for DnD link