安装gulp-sass抛出错误 [英] Installing gulp-sass throwing error

查看:138
本文介绍了安装gulp-sass抛出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题似乎重复



大部分时间都是这样,我一直在尝试安装optipng等插件。它显示相同的错误。似乎它正在www内部搜索脚本文件夹,但它不在那里。但脚本文件夹位于nodejs文件夹所在的C盘内。下面是确切的路径。


C:\程序文件\\\
odejs\\\
ode_modules\\\
pm\scripts


我不明白为什么它会在我的工作目录中搜索?


D:\wamp\www\scripts\install.js



解决方案

唯一的问题是自动运行设置命令提示符的路径。几年前,我已经将我的命令提示符的路径设置为从注册表 HKEY_CURRENT_USER\Software\ D:\wamp\www\ 你可以通过在运行对话框(窗口+ r)中输入regedit来访问注册表。



我刚刚删除了autorun文件,并开始正常工作。



信用链接


This question seems to be repeated of this link but I cannot figure out how to map a drive letter or share network. I am really sorry for repeating but I need help.

I have a command prompt with default directory pointing to my www folder of wamp server.

D:\wamp\www\

I have install other gulp plugin such as gulp-minify. It works fine without any error. But when I try to install gulp-sass it throws error

It happens to me most of the time like, I have been trying to install plugin such as optipng. It shows same error. Seems like it is searching for a "script" folder inside www which is not there. But the script folder is inside the c drive where the nodejs folder exist. Below is the exact path.

C:\Program Files\nodejs\node_modules\npm\scripts

I don't understand why it is searching in my working directory ?

D:\wamp\www\scripts\install.js

解决方案

The only problem was with the autorun to set the path of command prompt. Few years back I had set the path of my command prompt to D:\wamp\www\ from registry HKEY_CURRENT_USER\Software\Microsoft\Command Processor

You can access the registry by typing "regedit" in run dialog box (window + r)

i just deleted the autorun file and it started working normally.

Credit link

这篇关于安装gulp-sass抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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