'Ember new'抛出'无法找到模块'错误Windows 10

时间:2016-09-18 18:45:46

标签: node.js ember.js npm

我正在尝试学习ember并且安装工作正常。不确定发生了什么但突然Ember new会抛出以下错误:

$ ember new app
module.js:327
    throw err;
    ^

Error: Cannot find module 'debug'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (C:\Users\ConquerJS\node_modules\ember-cli\lib\cli\index.js:6:21)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)

我尝试手动安装丢失的模块,但是同样的错误又出现了一个它找不到的新模块。我在git bash和windows cmd中以管理员身份运行时出现此错误。

我是如此茫然,迫切需要在今天使用ember启动并运行我在我的计算机上重新安装了Windows ,认为这样可以让事情像当天早些时候那样运行,但是我仍然得到错误。我更新了npm到最新版本仍然得到它。现在我只要输入ember -v即可获得它,即使它在早期的安装中工作。

我想也许npm发生了一些事情,所以我继续使用我的旧桌面并安装了ember,它工作正常(但是它的旧amd处理器和硬盘驱动器速度慢得令人无法接受)。

0 个答案:

没有答案
相关问题