首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >NPM数据通信错误

NPM数据通信错误
EN

Stack Overflow用户
提问于 2016-02-09 16:03:38
回答 1查看 30关注 0票数 0

在我的datacomb目录:npm run serve中运行./node_modules/serve/bin/serve -p 5050 '.' is not recognized as an internal or external command, operable program or batch file.时,我得到了这个错误。

我有最新版本的npm/nodejs和最新版本的数据b

但是得到了同样的错误,所以我降级到datacombv1.0.0,我仍然会得到这个错误。对发生了什么有什么想法吗?

代码语言:javascript
复制
    > ./node_modules/serve/bin/serve -p 5050

'.' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\
node_modules\\npm\\bin\\npm-cli.js" "run" "serve"
npm ERR! node v5.5.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! datacomb@1.0.0 serve: `./node_modules/serve/bin/serve -p 5050`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the datacomb@1.0.0 serve script './node_modules/serv
ve -p 5050'.
npm ERR! Make sure you have the latest version of node.js and npm insta
npm ERR! If you do, this is most likely a problem with the datacomb pac
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./node_modules/serve/bin/serve -p 5050
npm ERR! You can get their info via:
npm ERR!     npm owner ls datacomb
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\hstrozier\Documents\datacomb-1.0.0\npm-debug.log
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-02-09 19:12:25

是数据文件中的一个漏洞。解决办法:

代码语言:javascript
复制
1.  Run: $ node "C:\path\to\datacomb-master\node_modules\serve-it\server.js" 
2.  You will be prompted for a path to the directory that you’d like to serve and a port. Insert: 

prompt: path:  C:\path\to\datacomb-master
prompt: port:  5050
Serving C:\path\

to\datacomb-master on port: 5050
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35296593

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档