“咕噜”;错误:找不到模块'/时间/转换';(仅在windows上)

“咕噜”;错误:找不到模块'/时间/转换';(仅在windows上),windows,node.js,npm,gruntjs,Windows,Node.js,Npm,Gruntjs,在linux下设置一个新的angular项目。将其提交到git并克隆到windows。使用bower和npm,我成功地加载了所有内容,但有一个错误(仅在windows上) 项目中../time/convert的递归grep显示: ./node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/mout/date/diff.js:var convert = requi

在linux下设置一个新的angular项目。将其提交到git并克隆到windows。使用bower和npm,我成功地加载了所有内容,但有一个错误(仅在windows上)

项目中../time/convert的递归grep显示:

./node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/mout/date/diff.js:var convert = require('../time/convert');
./node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/mout/src/date/diff.js:define(['./totalDaysInMonth', './totalDaysInYear', '../time/convert'], function(totalDaysInMonth, totalDaysInYear, convert){
./node_modules/grunt-contrib-imagemin/node_modules/optipng-bin/node_modules/bin-wrapper/node_modules/mout/date/diff.js:var convert = require('../time/convert');
./node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/mout/date/diff.js:var convert = require('../time/convert');
./node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/mout/src/date/diff.js:define(['./totalDaysInMonth', './totalDaysInYear', '../time/conve
但是ls-l显示:

$ ls ./node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/mout/time
convert.js  now.js  parseMs.js  toTimeString.js
也就是说convert.js确实存在。由于不熟悉咕噜声和棱角分明的声音,我很困惑这是从哪里来的,以及如何排除故障

在这之后,我被困在这里:

Running "karma:unit" (karma) task
INFO [karma]: Karma v0.10.4 server started at http://localhost:8080/
INFO [launcher]: Starting browser Chrome
WARN [watcher]: Pattern ".../test/mock/**/*.js" does not match any file
WARN [launcher]: Chrome have not captured in 60000 ms, killing.
INFO [launcher]: Trying to start Chrome again.
WARN [launcher]: Chrome have not captured in 60000 ms, killing.
INFO [launcher]: Trying to start Chrome again.

想知道在Windows上是否不可能使用grunt进行角度工作…

我的解决方案是停止使用Windows。将开发人员的工作转移到linux,这样的疯狂问题就不会再出现了。哦,我的机器现在看起来也快多了。

我的解决方案是停止使用windows。将开发人员的工作转移到linux,这样的疯狂问题就不会再出现了。哦,我的机器现在看起来也快多了。

我猜,mout库采用了*nix路径。您可以尝试编辑这些行以使用,例如,
var path=require('path');var convert=require(path.normalize('../time/convert'))我还没有实际使用过这个,所以我不能保证它会起作用,但这是我想做的第一件事,好像我可能弄错了,这是不必要的,在我的情况下,同样的错误是在尝试安装bower时;但是,在应该的位置没有时间/文件夹。只有一个
time.js
文件包含自动生成的
//不要编辑!改为运行'node build'
,并要求调用
/time/etcpp
。但是仍然:没有这样的文件夹,只有在
src
目录中。。。有什么想法吗?嗯。。。
bower更新mout
修复了问题。我猜,mout库采用*nix路径。您可以尝试编辑这些行以使用,例如,
var path=require('path');var convert=require(path.normalize('../time/convert'))我还没有实际使用过这个,所以我不能保证它会起作用,但这是我想做的第一件事,好像我可能弄错了,这是不必要的,在我的情况下,同样的错误是在尝试安装bower时;但是,在应该的位置没有时间/文件夹。只有一个
time.js
文件包含自动生成的
//不要编辑!改为运行'node build'
,并要求调用
/time/etcpp
。但是仍然:没有这样的文件夹,只有在
src
目录中。。。有什么想法吗?嗯。。。一个
bower更新mout
修复了这个问题。