项目中使用compass编译时报错

发布于 2022-09-07 22:27:48 字数 3834 浏览 34 评论 0

使用compass编译项目时,报下述错误

使用的是npm(6.4.1),node(8.11.4),ruby(ruby 2.2.6p396 (2016-11-15 revision 56800) [i386-mingw32]),使用过清空npm清缓存,检查是否有安装ruby,sass,最后都无效,不知道各位有没有可行的方法?。

下面是log内容

这个是操作栏内容
clipboard.png
下面是log文件内容
0 info it worked if it ends with ok
1 verbose cli [ 'D:\software\Node\node.exe',
1 verbose cli 'C:\Users\zhongmingyuan\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'compass' ]
2 info using npm@6.4.1
3 info using node@v8.11.4
4 verbose run-script [ 'precompass', 'compass', 'postcompass' ]
5 info lifecycle web@1.0.0~precompass: web@1.0.0
6 info lifecycle web@1.0.0~compass: web@1.0.0
7 verbose lifecycle web@1.0.0~compass: unsafe-perm in lifecycle true
8 verbose lifecycle web@1.0.0~compass: PATH: C:UserszhongmingyuanAppDataRoamingnpmnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;F:workspacefas-frontendnode_modules.bin;C:Userszhongmingyuanbin;D:softwareGitmingw64bin;D:softwareGitusrlocalbin;D:softwareGitusrbin;D:softwareGitusrbin;D:softwareGitmingw64bin;D:softwareGitusrbin;C:Userszhongmingyuanbin;C:Program Files (x86)InteliCLS Client;C:Program FilesInteliCLS Client;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelWiFibin;C:Program FilesCommon FilesIntelWirelessCommon;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program FilesJavajdk1.7.0_80bin;C:Program FilesJavajre7bin;D:softwareNode;D:softwareTortoiseSVNbin;D:softwareGitcmd;D:softwareMongoDBbin;C:Ruby22bin;C:UserszhongmingyuanAppDataLocalMicrosoftWindowsApps;C:UserszhongmingyuanAppDataRoamingnpm;D:softwareMicrosoft VS Codebin;D:softwareGitusrbinvendor_perl;D:softwareGitusrbincore_perl
9 verbose lifecycle web@1.0.0~compass: CWD: F:workspacefas-frontend
10 silly lifecycle web@1.0.0~compass: Args: [ '/d /s /c', 'compass watch' ]
11 silly lifecycle web@1.0.0~compass: Returned: code: 1 signal: null
12 info lifecycle web@1.0.0~compass: Failed to exec compass script
13 verbose stack Error: web@1.0.0 compass: compass watch
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:UserszhongmingyuanAppDataRoamingnpmnode_modulesnpmnode_modulesnpm-lifecycleindex.js:301:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (C:UserszhongmingyuanAppDataRoamingnpmnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid web@1.0.0
15 verbose cwd F:workspacefas-frontend
16 verbose Windows_NT 10.0.16299
17 verbose argv "D:\software\Node\node.exe" "C:\Users\zhongmingyuan\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "compass"
18 verbose node v8.11.4
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error web@1.0.0 compass: compass watch
22 error Exit status 1
23 error Failed at the web@1.0.0 compass script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

希望各位大神能指导下

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文