![]() It will create a basic package.json file in your project folder:Īfter we installed npm let’s install some packages. If you start you project from scratch and don’t have a package.json file run this command in your project: npm init - yes Maybe in the future I’ll write an article about terminal and how it can save your time just ‘running’ in computer directories. To verify that you created a folder run this: lsĪlso, you can use the basic way to create a folder. All you need to do is enter this command in your terminal: mkdir folder- name ![]() In the next steps you will work with your project folder. If you don’t have a project folder at this step it’s time to create it. So check the npm version to verify you have the latest version: npm -v If you already have a Node.js on your computer check the version: node -v Simply, without Node.js you can’t get npm in your project. We need Node.js because npm is a separate project from Node.js. If you don’t have Node.js on you computer install Node.js from the official website.
0 Comments
Leave a Reply. |