简体   繁体   中英

angularjs npm start shows error

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM