繁体   English   中英

在Windows 10上安装Node.js软件包(和npm)我无法确定如何正确安装

[英]Installing Node.js package (and npm) on Windows 10 I was could'n find out how install exactly

当我启动“ 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

请确保文件“ D:\\ myangular \\ package.json”存在。 另一种方法是,尝试删除node_modules文件夹并运行命令: npm install 然后重新运行您的命令: npm start

请首先运行npm install命令。 比您运行node your main file.js

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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