简体   繁体   English

无法从Codenvy预览/运行angular.js项目

[英]Unable to preview / run angular.js project from codenvy

I developed an angular.js project on codenvy IDE on Javascript framework ( or is it platform). 我在Javascript框架(或平台)上的Codenvy IDE上开发了angular.js项目。 I am unable to preview the same. 我无法预览相同的内容。

I get the following error. 我收到以下错误。

[ERROR] Failed to start application. : ====> /logs/stderr.log <==== node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Cannot find module 'gulp' at Function._resolveFilename (module.js:326:11) at Function._load (module.js:271:25) at require (module.js:355:19) at Object.(/var/vcap.local/dea/apps/app-07zsn86eb8vspvg0-0-bf2638b3e702ededc5473a0c16608d37/app/gulpfile.js:1:74) at Module._compile (module.js:411:26) at Object..js (module.js:417:10) at Module.load (module.js:343:31) at Function._load (module.js:302:12) at Array. (module.js:430:10) at EventEmitter._tickCallback (node.js:126:26)

The console output says it cannot find Gulp, but my project certainly has gulp.js on the root folder. 控制台输出显示找不到Gulp,但是我的项目在根文件夹中肯定有gulp.js。 Also the project works perfectly fine when i preview this from a Webstorm editor - so i dont think there is an issue with the code per se.. 当我从Webstorm编辑器预览此项目时,该项目也可以正常运行-因此,我认为代码本身不存在问题。

Any help much appreciated 任何帮助表示赞赏

James 詹姆士

If your project is public, please, share it with Codenvy's factory feature. 如果您的项目是公开的,请与Codenvy的工厂功能共享。 So everyone will be able to look what is wrong with the project. 这样,每个人都可以查看该项目出了什么问题。 (You can access factory on left panel of the IDE) (您可以在IDE的左侧面板上访问工厂)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM