[英]Installing gulp-sass throwing error
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. 我有一个命令提示符,默认目录指向我的wamp服务器的www文件夹。
D:\wamp\www\
I have install other gulp plugin such as gulp-minify. 我已经安装了其他gulp插件,例如gulp-minify。 It works fine without any error.
它工作正常,没有任何错误。 But when I try to install gulp-sass it throws error
但是当我尝试安装gulp-sass时会抛出错误
It happens to me most of the time like, I have been trying to install plugin such as optipng. 多数情况下,这是发生在我身上的,例如,我一直在尝试安装optipng之类的插件。 It shows same error.
它显示相同的错误。 Seems like it is searching for a "script" folder inside www which is not there.
似乎它正在www中搜索“ script”文件夹,该文件夹不存在。 But the script folder is inside the c drive where the nodejs folder exist.
但是脚本文件夹位于存在nodejs文件夹的C驱动器内。 Below is the exact path.
下面是确切的路径。
C:\\Program Files\\nodejs\\node_modules\\npm\\scripts
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
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
几年前,我已将命令提示符的路径从注册表
HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor
设置为D:\\wamp\\www\\
You can access the registry by typing "regedit" in run dialog box (window + r) 您可以通过在运行对话框(窗口+ r)中键入“ regedit”来访问注册表
i just deleted the autorun file and it started working normally. 我刚刚删除了自动运行文件,它开始正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.