Laravel 教程中运行npm run watch-poll提示bootstrap-sass文件夹等内容不存在的解决办法

关于laravel下执行npm run dev 或者npm run watch-poll报错的问题 我感觉问题主要是因为操作系统不同的原因,在linux是不需要安装cross-env的,虚拟机里操作那么是不需要安装的,这东西是给windows用的所以,不同的环境下package.json下的内容应该是不同的Windows下需要安装cross_env,所以package.json应该是这样的,路径不对也会出错{    "private": true,    "scripts": {        ... 阅读详情

故障现象:

运行npm run watch-poll

提示bootstrap-sass文件夹及包含内容不存在

解决办法:

复制一份bootstrap-sass文件夹到指定位置

如:将

/usr/local/share/gems/gems/bootstrap-sass-3.3.7

复制为

/home/wwwroot/测试域名/node_moudles/bootstrap-sass

问题:

如果没有上述源文件夹,则需要安装bootstrap-sass

而安装bootstrap-sass需要nodejs、ruby、sass支持。

其安装方法可参考以下步骤:

1.升级nodejs

输入node -v

如果上面查看的版本比较低,则可以开始升级

清除npm cache

升级之前还需要安装n模块,n模块是专门用来管理nodejs的版本

输入npm install -g n

n模块安装完成之后,输入n -V查看版本,显示版本比原来的更新,则表示成功安装了。

n模块安装完成之后没有配置环境变量和软连接的话,需要带上全路径执行。

如果你想升级到一个指定的版本,则可以使用n 7.1.0来升级,

还可以直接输入n stable,升级到nodejs最新稳定的版本,

升级完成之后,输入node -v再次查看当前版本是否已经成功升级到新的版本了。

2.安装/升级ruby

在Centos7.3中,通过yum安装ruby的版本是2.0.0,但是如果有些应用需要高版本的ruby环境

换yum源安装

     yum install centos-release-scl-rh   //会在/etc/yum.repos.d/目录下多出一个CentOS-SCLo-scl-rh.repo源

     yum install rh-ruby23  -y                   //直接yum安装即可  

    scl  enable  rh-ruby23 bash           //必要一步

    ruby -v                                           //查看安装版本

3.安装升级sass

sudo su -c "gem install sass"

  • 若出现错误提示

    [root@iz2ze6hzcn38yurhan7re4z ~]# sudo su -c "gem install sass"

    Building native extensions.  This could take a while...
    ERROR:  Error installing sass:
        ERROR: Failed to build gem native extension.
        /usr/bin/ruby extconf.rb
    mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
    Gem files will remain installed in /usr/local/share/gems/gems/ffi-1.9.23 for inspection.
    Results logged to /usr/local/share/gems/gems/ffi-1.9.23/ext/ffi_c/gem_make.out

  • 可用以下方法解决

Linux Centos 系统下执行: yum install ruby-devel 

Linux Ubuntu 系统下执行: apt-get install ruby-dev

使用sass -v查看是否安装成功:sass -v

4.安装bootstrap-sass

sudo su -c "gem install bootstrap-sass"

5.查找和复制

find / -name "bootstrap-sass*"

找到好多,选择一个

/usr/local/share/gems/gems/bootstrap-sass-3.3.7

将该文件夹复制到指定位置

问题解决。


bootstrap-npm:有关如何使用npm包含,自定义和编译Bootstrap的SassCSS的演示 立即下载

相关推荐

Laravel开发-laravel-scss

Laravel开发-laravel-scss 在模板中添加用于将scss编译到css的blade指令

winform margin不生效_Laraver-运行 npm run watch-poll 后样式不改变

先说解决方案吧:我的是 chrome 浏览器,按 F12 打开调试模式找到 Network,把 “Disable cache”勾选上,再次刷新页面,接下来是见证奇迹的时刻,样式有改变了。跟着,我来说下这无语的问题的由来:来源: L01 Laravel 教程 - Web 开发实战入门 ( Laravel 5.7 ) - 4.2. 样式美化根据教程,成功执行了 npm run watch-poll ,...

weixin_39717029的博客 900

loadStop的原因导致的SSUSP

Total内存值是可用来调度的可用内存,当前可用内存为 0M。 loadSched和loadStop的阈值是根据 Total 内存和节点内存来做限制的。 loadStop 50G,现在有大量作业SSUSP,说明之前某个时间点该节点内存可能有低于50G的时候,导致作业SSUSP,具体是否是这个原因引起的需要用 bjobs -l JobID 看下作业的详细信息。 如果是loadStop的原因导致的 SSUSP,根据loadStop设置的阈值,Total 值高于loadStop值后,将逐步恢复挂起的作业

Blueberry521的博客 667

win10 下运行 npm run watch-poll问题

背景:在本地练习laravel项目,windows 宝塔环境(之前装过ubuntu子系统,很慢,就放弃了。有知道的兄弟说下,抱拳)。以下命令我是在本地项目中用git bash里运行的,“‘mix’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。再次运行 npm run watch-poll,提示如下。再次运行 npm run watch-poll 成功。按提示运行 ,要稍微等待下。运行 并等待安装完成。

皮皮虾的博客 1625

别再只画GO图了!用R语言+Perl脚本搞定单细胞KEGG富集分析与圈图(附完整代码)

本文详细介绍了如何利用R语言和Perl脚本实现单细胞KEGG富集分析全流程,从基因ID转换到专业圈图可视化。通过对比KEGG与GO分析的互补价值,提供完整的代码实现和优化技巧,帮助研究者高效完成单细胞测序数据的通路分析,并生成高质量的圈图展示结果。

weixin_28694169的博客 404

K210学习笔记(八)——人脸检测和人脸识别

前言 人脸检测是人脸识别算法的第一步,人脸识别过程主要分为人脸图像获取、人脸检测、人脸配准、人脸表征以及人脸图像匹配与识别。人脸检测的目标是找出图像中所有的人脸对应的位置,算法的输出是人脸外接矩形(椭圆)在图像中的坐标,可能还包括姿态如倾斜角度等信息。人脸检测在安防监控,人证比对,人机交互,社交和娱乐等方面有很强的应用价值。 人脸识别是在人脸检测的基础上除了检测到人脸的位置以外, 还可以识别到这个人是谁,利用分析比较是基于人的脸视觉部特征信息进行身份鉴识别的计算机一种生物识别技术。 一、KPU模块方法 1、

Thousand_drive的博客 1万+

npm run watch-poll 监控css、js 文件更新

后台执行npm run watch-poll  你可以在执行命令的后面接一个&命令就会在后台运行了。完整命令:npm run watch-poll & 如果已经直接执行了npm run watch-poll,可以直接按ctrl + z,将程序挂到后台,然后会看到一个任务号,如:[1]+ Stopped npm run watch-poll,再执行:bg 1就相当于上述第...

weixin_33800593的博客 487

[统计模型] 基于R的潜在剖面分析(LPA)

本文主要介绍基于R进行潜在剖面分析(Latent Profile Aanalysis, LPA)。 关于潜在类别分析LCA/潜在剖面分析LPA的概念和区别,可以参考一下这篇文章: 潜在类别分析LCA \潜在剖面分析LPA介绍https://www.jianshu.com/p/4c830094131e?utm_campaign=maleskine 但是此文对潜类别分析的阐释还比较生涩,而且没有具体的代码编写、模型优选等内容。本文旨在丰富LPA的内容,并希望和大家交流、共同进步。 1. 什么是潜类别分.

bigstar863的博客 1万+

npm run watch-poll

使用 webpack 自动编译时,出现异常,日志: [root@vm shop]# npm run watch-poll > @ watch-poll /home/www/shop > npm run watch -- --watch-poll > @ watch /home/www/shop > npm run development -- --watch "--w...

zhpj 2646

K-GAS解读(08)

大众kgas标准,大众及其供应商kgas

m0_51113317的博客 598

保姆级教程:用OpenCV的calibrateHandEye()搞定机器人手眼标定(附Python代码)

本文详细介绍了如何使用OpenCV的calibrateHandEye()函数完成机器人手眼标定,解决机械臂与相机坐标系对齐问题。教程涵盖从基础原理、数据采集到Python代码实现的完整流程,特别适合需要精确视觉引导的机器人应用开发。通过手眼标定,可确保机械臂准确抓取相机检测到的目标物体。

weixin_33712987的博客 517

windows下运行 npm run watch-poll问题(Laravel 项目中使用 Bootstrap 前端框架)

windows下运行 npm run watch-poll问题(Laravel 项目中使用 Bootstrap 前端框架)

Mmj_mmj的博客 682

数据分析案例-汽车客户信息数据可视化分析

本数据集来源于kaggle,原始数据集共有8068条,11个特征变量,各变量含义解释如下:ID:客户IDGender:客户性别Ever_Married:客户婚姻状况Age:客户年龄Graduated:客户是毕业生吗?Profession:客户的职业Work_Experience:多年工作经验Spending_Score:客户的消费评分Family_Size:客户家庭成员人数(含客户)Var_1:客户的匿名类别Segmentation:(目标)客户的客户群。

m0_64336780的博客 1万+

laravel 框架下的问题总结(十一)----运行:npm run dev npm run watch-poll报错,在 package.json 干掉三行的 cross-env

{ "private": true, "scripts": { "dev": "npm run development", "development": "NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix...

呼~~~,风来了 661

【思考模型框架】采用双钻模型:发散(桌面研究/用户访谈)→收敛(需求归类/优先级排序),输出需求规格书、追踪矩阵及产品待办清单。

设计思维双钻模型是一种以用户为中心的需求管理方法,通过"发散-收敛"的双循环确保问题定位准确、方案切实可行。第一钻石(探索→定义)聚焦"找对问题",运用用户访谈、田野调查等方法挖掘真实需求;第二钻石(开发→交付)解决"做对方案",通过原型测试、A/B测试验证可行性。该模型强调低保真验证、多团队协作和真实用户测试,避免资源浪费与伪需求开发。典型应用场景包括产品功能优化、用户体验提升等需要精准落地的需求场景。核心价值在于建立从用户痛点到解决方案的可控闭

奶爸的编程之路,也就一周冷个三天 319

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

Laravel入门-开发基本环境配置

我准备建立一个Laravel专栏。将会根据我参与制作Laravel项目、我试验的特性进行系统性、专题性的进行分析和介绍。 这是我的第一篇Laravel介绍——基本开发环境配置。跟着我的脚步,你可以快速完成环境配置,然后在浏览器上打开经典的“Hello Word”。 我们在接触一个“新鲜”框架的时候,很难在短时间内进行一个项目的搭建。但是,Laravel可以做到,而且还不是一般的快。 【操作系统】 Apple Mac M1 macOS Big Sur 版本 11.6 【工具安装】 安装Composer(PH

时间进行的小宇的博客 896

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

NPM run watch-poll 无法运行解决方法?

在做电商的项目时,发现npm run watch-poll报错,最后发现是laravel创建项目时没有指定版本为8。

m0_70556273的博客 436

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

install各种报错 yurn_运行 NPM run watch-poll 各种报错问题整理

运行 npm run watch-poll 各种报错问题整理!首先对windows用户来说,运行 npm run watch-poll时没遇到错误是你的幸运,遇到了就像Summer说的那“死磕到底”。坚持下去,找不同的方法去测试,测试的过程中要习惯看log文件。现在将我的辛路历程整理一下,希望能给大带来帮助。一. 明白自已电脑系统、软件版本以及Homestead因为本教程是基于Homestead的...

weixin_28877505的博客 828

laravel8Mix npm run watch-poll报错

前几天出现这样的问题,后来想降低版本,结果还是报错,提示没有某个webpack的插件。通过从旧版本的node_modules加入文件来修正。 今天重新下载最新版。结果又是报错。而且查看日志没有任何提示。 但是,npm run watch-poll后有绿色的提示: Additional dependencies must be installed. This will only take a moment. Running: npm install vue-loader@^15.9.7.

kfgauss的博客 409

laravel:使用npm run watch-poll找不到cross-dev错误

$ yarn install --no-bin-links$yarn add cross-env

dlnumk的博客 855

Laravel Homestead 使用npm run watch无法实现动态更新

想做个简单博客拿来练手,但发现在homestead中使用npm watch无法动态更新生成的文件,每次都得重新运行npm run watch才可以编译出最新更改后的文件。 以前在Linux下使用npm run watch没有这问题,所以推断是homestead的问题。 查看package.json,发现他不仅提供了watch,还提供了watch-poll。 从名字上看,poll就是通过轮询的...

3435

npm run watch-poll sweetalert 报错

可以尝试:npm install sweetalert  

康师父Blog 278

虚拟机中npm run watch-poll占用cpu过高

在虚拟机中做laravel+vue的开发,为了在win下更改后虚拟机能实时编译,需要用到npm run watch-poll。 但是缺点就是cpu占用蹭蹭往上涨,一直稳定在50~60%。我也是听着风扇不停的转,才发现的。 在这里(点击查看)有人就建议在win下npm run watch,composer在虚拟机中就可以了。 毕竟在win下,占用cpu很低的。 本来是想放弃的,但是觉得这样开发好别...

qq_37910492的博客 1624

用npm-run自动化任务

自动构建javascript有不少好工具。不过其实很少有人知道,npm run命令就能很好地完成这一任务,配置起来也很简单。 James Halliday在博客上分享了使用npm run自动化任务的一些经验: script npm 会在项目的 package.json 文件中寻找 scripts 区域,其中包括npm test和npm start等命令。 其

kooky博客 1万+
上一篇: yarn install --no-bin-links 后一直显示waiting...
下一篇: Laravel教程中数据迁移命令出错,提示 specified key was too long的解决办法
loverzai
博客等级 码龄17年 25粉丝 19原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值