0

I'm trying to use with angularjs with live preview with this command

npm start

my npm version is 4.3.0

I get these errors:

Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\adirz\Desktop\Angularjs\Blog>npm start npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\adirz\A ppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "start" npm ERR! node v6.9.3 npm ERR! npm v4.3.0 npm ERR! path C:\Users\adirz\Desktop\Angularjs\Blog\package.json npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\adirz\ Desktop\Angularjs\Blog\package.json' npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\adirz\ Desktop\Angularjs\Blog\package.json' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent

npm ERR! Please include the following file with any support request: npm ERR!
C:\Users\adirz\AppData\Roaming\npm-cache_logs\2017-02-26T1 2_48_04_006Z-debug.log

Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
Manspof
  • 598
  • 26
  • 81
  • 173

1 Answers1

2

this error will occur if the package.json is missing in your directory. first write npm init command in your directory. it will create json file and make sure to define a "start" script inside it too before running npm start.

Sachila Ranawaka
  • 39,756
  • 7
  • 56
  • 80