Laravel 5.4在c9.io中混合 [英] Laravel 5.4 Mix in c9.io ide

查看:41
本文介绍了Laravel 5.4在c9.io中混合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图让Laravel Mix NodeJS编译脚本在c9 ide中运行几个小时,希望有人对此有所解释或解决.

所以基本上我想编译我的sass和一个javascript文件,它们都是默认的,所以代码内没有错误的可能性.我的webpack.mix.js是默认的,好了,我要做的就是运行npm命令"npm run dev",该命令在不破坏文件名的情况下编译文件.每次保存并进行更改时都会自动编译的"npm run watch"效果不佳.抱歉,您的解释很糟糕,但我只是想找一个快速解决方法.

解决方案

问题已解决.造成此问题的原因是,默认情况下,c9运行的节点< ---的版本较旧,因此对节点7的简单更新解决了该问题.

I've been trying to get Laravel Mix NodeJS compiling scripts to run in the c9 ide for hours now hopefully someone has a explanation or a fix.

So basically I'm trying to compile my sass and a javascript file which both are default so there is no possibility of errors within the code. My webpack.mix.js is default and well and all I'm trying to do is run the npm command "npm run dev" which compiles the files without uglifying it and such. "npm run watch" which auto compiles every time you save and a change has been made does not work as well. Sorry for the terriable explanation but I'm just looking for a quick fix.

解决方案

Problem has been solved. The issue was caused because c9 by default was running an older version of node <--- so a simple update to node 7 fixed the issue.

这篇关于Laravel 5.4在c9.io中混合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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