约曼:角fullstack发电机无法找到模块“通天塔运行时/助理/互操作,需要默认” [英] Yeoman : angular-fullstack-generator cannot find module 'babel-runtime/helpers/interop-require-default'

查看:272
本文介绍了约曼:角fullstack发电机无法找到模块“通天塔运行时/助理/互操作,需要默认”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图用约曼脚手架用角fullstack发电机的平均应用程序,但是我已经遇到这个奇怪的错误我从来没有遇到过,我已经尝试重新安装咕噜-CLI,NPM哟,没有它的作品,我使用的NVM和节点4.4.0

i've been trying to use Yeoman to scaffold a mean app with angular-fullstack-generator, however i've been encountering this weird error i'd never encountered before, i've already tried reinstalling grunt-cli, npm, yo, none of it works, i'm using NVM and Node 4.4.0

我的Python 2.7.11安装,显然32位版本,而其他的都是64位的,我不知道这可能是什么导致了问题。

I have Python 2.7.11 installed, apparently the 32-bit version, whereas everything else is 64-bit, i don't know if this might be what's causing the problem.

所示控制台上的错误的完整描述如下:

The full description of the error as shown on the console is as follows:

   yo angular-fullstack
module.js:327
    throw err;
    ^

Error: Cannot find module 'babel-runtime/helpers/interop-require-default'
    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\Jonny\AppData\Roaming\npm\node_modules\generator-angular-fullstack\node_modules\babel-register\lib\node.js:3:30)
    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)
    at require (internal/module.js:12:17)

那么,我究竟做错了什么?还有什么我可以尝试解决这一问题?

So, what am i doing wrong here? Is there anything else i can try to fix the problem?

推荐答案

因为通天塔运行时模块丢失时,会出现错误。是必需的通天塔运行时模块巴贝尔工作

The error occurs because the babel-runtime module is missing. The babel-runtime module is required for babel to work.

您可以通过运行以下命令解决此问题:

You can fix this by running the command:

NPM安装--save通天塔运行时

这篇关于约曼:角fullstack发电机无法找到模块“通天塔运行时/助理/互操作,需要默认”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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