繁体   English   中英

具有最新NodeJS版本的Angular Gulp设置

[英]Angular Gulp setup with latest NodeJS version

我一直在为我的AngularJS项目的gulp设置遵循仓库A健康的Gulp设置

我可以在旧版本的nodejs中成功进行此操作。 但是在另一个系统上,我安装了较新的版本“ NodeJS 4.2.2 ”,并且遇到很多依赖项错误。

初次尝试npm install出现错误

npm WARN engine karma@0.10.10: wanted: {"node":"~0.8 || ~0.10"} (current: {"node
":"4.2.2","npm":"2.14.7"})

我试图将package.json中的业力版本从0.10修改为0.13 这次,在处理bufferutil时,npm安装挂起了数小时。

C:\wamp\www\ros_ui\node_modules\karma\node_modules\socket.io\node_modules\socket
.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_mo
dules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
 )  else (node  rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
  bufferutil.cc
  win_delay_load_hook.c
     Creating library C:\wamp\www\ros_ui\node_modules\karma\node_modules\socket
  .io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\
  ws\node_modules\bufferutil\build\Release\bufferutil.lib and object C:\wamp\ww
  w\ros_ui\node_modules\karma\node_modules\socket.io\node_modules\socket.io-cli
  ent\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil\bui
  ld\Release\bufferutil.exp
  Generating code
  Finished generating code
  bufferutil.vcxproj -> C:\wamp\www\ros_ui\node_modules\karma\node_modules\sock
  et.io\node_modules\socket.io-client\node_modules\engine.io-client\node_module
  s\ws\node_modules\bufferutil\build\Release\\bufferutil.node

有什么解决办法吗? 我更喜欢使用最新的节点版本。 任何帮助,将不胜感激。 提前致谢。

尝试angularcoffee-boilerplate ,这是AngularJS的项目模板,其中npm和Gulp已预先配置。 只需克隆项目,使用脚本install_prerequisites.bat安装必备组件,然后使用命令npm start服务器。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM