title: npm ERR! code ENOLOCAL
body: <p>after making a software to my laptop I installed all the programs includes node js
  my OS windows</p>
  
  <pre><code>$ node -v
  v8.11.1
  </code></pre>
  
  <p>and the npm</p>
  
  <pre><code>$ npm -v
  v5.6.0
  </code></pre>
  
  <p>when I tried to install npm globally it's gave me this error : </p>
  
  <pre><code>$ npm install -g
  npm ERR! code ENOLOCAL
  npm ERR! Could not install from "" as it does not contain a package.json 
  file.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\Aroma\AppData\Roaming\npm-cache\_logs\2018-04- 
  07T11_10_29_184Z-debug.log
  </code></pre>
  
  <p>or even when I tried to install it locally to a repository it's gave me:</p>
  
  <pre><code>$ npm install
  npm WARN saveError ENOENT: no such file or directory, open 
  'C:\Users\Aroma\Desktop\app\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 
  'C:\Users\Aroma\Desktop\app\package.json'
  npm WARN app No description
  npm WARN app No repository field.
  npm WARN app No README data
  npm WARN app No license field.
  
  up to date in 0.11s
  </code></pre>
  
  <p>any help would be appreciated  </p>