when i start ‘npm start’ its giving below error. And localhost:8082 is not working. I tried localhost:8080 but nothing working.
当我开始'npm start'时,它给出了以下错误。而localhost:8082无法正常工作。我试过localhost:8080但没什么用。
$ npm start
npm ERR! Windows_NT 6.1.7600
npm ERR! argv “C:\\Program Files\\nodejs\\node.exe” “C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js” “start”
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! path D:\myangular\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open‘D:\myangular\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! D:\myangular\npm-debug.log
2 个解决方案
#1
2
Please be ensure to file "D:\myangular\package.json" is exist. Another way, try to delete the node_modules folder and run command: npm install. And then re-run your command: npm start.
请确保文件“D:\ myangular \ package.json”存在。另一种方法,尝试删除node_modules文件夹并运行命令:npm install。然后重新运行命令:npm start。
#2
0
Please run npm install
command first. Than you run node your main file.js
请先运行npm install命令。比你运行节点你的主file.js
#1
2
Please be ensure to file "D:\myangular\package.json" is exist. Another way, try to delete the node_modules folder and run command: npm install. And then re-run your command: npm start.
请确保文件“D:\ myangular \ package.json”存在。另一种方法,尝试删除node_modules文件夹并运行命令:npm install。然后重新运行命令:npm start。
#2
0
Please run npm install
command first. Than you run node your main file.js
请先运行npm install命令。比你运行节点你的主file.js