如何摆脱错误“".不被识别为内部或外部命令"为 MEAN 堆栈运行“npm install"时? [英] How do I get rid of error "'.' is not recognized as an internal or external command" when running 'npm install' for MEAN stack?

查看:21
本文介绍了如何摆脱错误“".不被识别为内部或外部命令"为 MEAN 堆栈运行“npm install"时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从 mean.io 下载 mean stck zip安装了 npm几分钟后,我得到了一个错误.请看截图.我该怎么办?

downloaded mean stck zip from mean.io did an npm install after few minutes I got an error. Please see screenshot. what do I do?

npm http 200 https://registry.npmjs.org/event-emitter/-/event-e
mitter-0.2.2.tgz

> mean@1.0.0 postinstall C:ssD1google4meanmean-stack
> ./node_modules/bower/bin/bower install

'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! weird error 1
npm ERR! not ok code 0

推荐答案

看起来 mean stacks postinstall 脚本是用 Unix 风格的路径硬编码的.在 Unix 中,./somethig/or/another 表示访问从 HERE 开始的 something 目录(. 的含义).

Looks like mean stacks postinstall script is hardcoded with Unix style paths. In Unix ./somethig/or/another signifies accessing the something directory starting HERE (the meaning of .).

我建议在他们的 GitHub 页面上提交一个错误以开始.然后,您可能能够摆脱编辑 package.json 以使安装后脚本使用 Windows 样式路径.它类似于 node_modulesowerinower install.我没有窗户,所以不能确定.

I'd suggest submitting a bug on their GitHub page to start. Then you might be able to get away with editing the package.json to have the post install script use Windows style paths. It would be something like node_modulesowerinower install. I don't have windows so cannot say for certain.

这篇关于如何摆脱错误“".不被识别为内部或外部命令"为 MEAN 堆栈运行“npm install"时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆