GithubHelp home page GithubHelp logo

Comments (5)

hzlzh avatar hzlzh commented on June 14, 2024

看起来是 node-sass 没有安装好的问题。
如果是用 cnpm 安装的的,尝试一下用 npm 重新安装呢。

from generator-workflow.

guohui8 avatar guohui8 commented on June 14, 2024

用npm重新安装的,还是会出错额。

Guohui@GuohuiPC MINGW64 ~/Desktop/generator-workflow
$ yo workflow

 _-----_
|       |
|--(o)--|   .------------------------------------------------.

---------´ | Welcome to tmt-workflow Yeoman generator, | ( _´U_ ) | More configs in .tmtworkflowrc |
/A\ '_____________________________________________'
| ~ |
'.
.'

´ |° ´ Y

开始配置工作流:? 项目名: (project-xxx) GuohuiTest ? 项目名: GuohuiTest ? 版本号: (0.0.1) ? 版本号: 0.0.1 ? 作者: () Guohui ? 作者: Guohui ? ▬▬▬▬ 选择更多功能 <空格键> ▬▬▬▬ (Press <space> to select, <a> to toggle all, <i> to in ? ▬▬▬▬ 选择更多功能 <空格键> ▬▬▬▬ 开启: LiveReload // 文件变动触发浏览器自动刷新 ? 配置完成, 项目创建成功! ? 配置完成, 项目创建成功! 是否自动执行npm install & gulp build_dev` ? Yes
GuohuiTest
create GuohuiTest\gulpfile.js
create GuohuiTest\src\css\header.less
create GuohuiTest\src\css\lib-mixins.less
create GuohuiTest\src\css\lib-rem.less
create GuohuiTest\src\css\lib-reset.less
create GuohuiTest\src\css\style-index.less
create GuohuiTest\src\css\tips.less
create GuohuiTest\src\html\index.html
create GuohuiTest\src\img\bg-body.png
create GuohuiTest\src\img\bg-logo.png
create GuohuiTest\src\slice\icon-dribbble.png
create GuohuiTest\src\slice\[email protected]
create GuohuiTest\src\slice\icon-facebook.png
create GuohuiTest\src\slice\[email protected]
create GuohuiTest\src\slice\icon-github.png
create GuohuiTest\src\slice\[email protected]
create GuohuiTest\src\slice\icon-instagram.png
create GuohuiTest\src\slice\[email protected]
create GuohuiTest\src\slice\icon-twitter.png
create GuohuiTest\src\slice\[email protected]
create _tasks\TaskBuildDev.js
create _tasks\TaskBuildDist.js
create _tasks\TaskFTP.js
create _tasks\TaskSFTP.js
create _tasks\TaskZip.js
create _tasks\common\changed.js
create _tasks\common\webp.js
create _tasks\index.js
create _tasks\lib\util.js
create _tasks\plugins\TmTIndex.js
create _tasks\plugins\ftp.js
create .tmtworkflowrc
create package.json

I'm all done. Running npm install for you to install the required dependencies. If this fails, try running the command yourself.

[email protected] install C:\Users\Guohui\Desktop\generator-workflow\node_modules\gulp-tmtsprite\node_modules\node-lwip
node prebuild

{ node: '6.10.1', modules: '48' }
Your node version is out of date, please install the latest one!

C:\Users\Guohui\Desktop\generator-workflow\node_modules\gulp-tmtsprite\node_modules\node-lwip>if not defined npm_config_node_gyp (
node "C:\Users\Guohui\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )

gyp

ERR!
clean error

gyp
ERR! stack Error: EPERM: operation not permitted, unlink 'C:\Users\Guohui\Desktop\generator-workflow\node_modules\gulp-tmtsprite\node_modules\node-lwip\build\Release\lwip_decoder.node'
gyp ERR! stack
at Error (native)

gyp
ERR! System Windows_NT 10.0.14393

gyp
ERR! command "D:\Program Files\nodejs\node.exe" "C:\Users\Guohui\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"

gyp ERR!
cwd C:\Users\Guohui\Desktop\generator-workflow\node_modules\gulp-tmtsprite\node_modules\node-lwip

gyp ERR! node -v
v6.10.1

gyp
ERR! node-gyp -v v3.6.2

gyp

ERR!

not ok

child process exited with code 1
C:\Users\Guohui\Desktop\generator-workflow\node_modules\gulp-tmtsprite\node_modules\node-lwip\prebuild.js:123
if (err) throw err;
^

Error: Command failed: node-gyp rebuild
gyp ERR! clean error
gyp ERR! stack Error: EPERM: operation not permitted, unlink 'C:\Users\Guohui\Desktop\generator-workflow\node_modules\gulp-tmtsprite\node_modules\node-lwip\build\Release\lwip_decoder.node'
gyp ERR! stack at Error (native)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "D:\Program Files\nodejs\node.exe" "C:\Users\Guohui\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Guohui\Desktop\generator-workflow\node_modules\gulp-tmtsprite\node_modules\node-lwip
gyp ERR! node -v v6.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok

at ChildProcess.exithandler (child_process.js:204:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node prebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! D:\Program Files\nodejs\node_cache_logs\2017-06-19T10_54_35_743Z-debug.log
module.js:471
throw err;
^

Error: Cannot find module 'gulp-tmtsprite'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Guohui\Desktop\generator-workflow_tasks\TaskBuildDist.js:15:17)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

Guohui@GuohuiPC MINGW64 ~/Desktop/generator-workflow
$

from generator-workflow.

hzlzh avatar hzlzh commented on June 14, 2024

node-gyp 安装失败,还是网络问题,是否在爬墙状态,用一下代理试试

from generator-workflow.

guohui8 avatar guohui8 commented on June 14, 2024

额,应该不是网络问题,代理试了也不行,错误和上面差不多。
lwip没法装,node-gyp build没法执行。
https://github.com/nodejs/node-gyp#installation
看了下,因为是win10 x64的,应该是需要安装Python和windows-build-tools,但刚试了也不行,快要崩溃了呜呜~
我还是用客户端的方式方便点吧,多谢啦!

from generator-workflow.

hzlzh avatar hzlzh commented on June 14, 2024

多谢反馈,这个问题我们收集并标记了,有进展会给你反馈。

from generator-workflow.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.