node.js - 在Windows 7中使用nodejs构建syntaxhighlighter

标签 node.js windows-7 syntaxhighlighter

我需要从这里构建 Syntaxhighlighter:https://github.com/alexgorbatchev/SyntaxHighlighter

我已阅读这些:
https://npmjs.org/doc/faq.html
Getting started with NODE.JS in windows x86
Get started with Node.js in Windows
Installing node packages / dependencies using npm on Windows Server 2008

看来是从这里安装Nodejs http://nodejs.org/download/应该足够了。

syntaxhighlighter 构建说明中的第 3 步说:

3.Then ./node_modules/.bin/bower install to download dependencies

我的机器上有这个路径:

C:\Program Files (x86)\nodejs\node_modules\npm\bin

我可以在syntaxhighlighter zip 文件中看到一个bower.json。

我已经用谷歌搜索了如何下载 Windows 的依赖项,但我找不到任何东西。
这里有很多信息:
How do I get started with Node.js 但我认为这不适用于 Windows 环境。
你能帮忙吗?

编辑:
好的,现在似乎可以工作了。
安装Git-1.8.4-preview20130916.exe并重新启动。
第8步现在就可以了。 第 9 步给出“grunt not recognize”。 尝试过

npm install -g grunt-cli

从这里:https://github.com/gruntjs/grunt/issues/774
现在我有一个 pkg 文件夹

谢谢老师

最佳答案

  1. 按照说明安装适用于 Windows 的 NodeJ
  2. 安装Git for Windows ,选择“将 Git 添加到您的路径”​​选项。
  3. 在 Windows 中打开新的命令提示符。理想情况下,以管理员身份打开。不要重复使用现有的命令提示符。该路径只能在新的命令提示符中正确设置。
  4. 下载荧光笔代码或使用 git 克隆
  5. 如果您获得了 zip 文件,请将其解压缩
  6. 在命令提示符下,将事件目录更改为您克隆或解压缩的代码的文件夹
  7. 键入 npm install -g grunt-cli,然后在以下每项后面输入 Enter...
  8. 输入npm install -g Bower
  9. 输入npm install
  10. 输入bower install
  11. 输入grunt build

完成。

关于node.js - 在Windows 7中使用nodejs构建syntaxhighlighter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19875068/

相关文章:

javascript - 如何在 express 4.x 上启用 https(使用 express.static)

windows-7 - 当我的笔记本电脑在 Windows 7 中进入休眠状态时关闭正在运行的应用程序(合上盖子或按下 sleep 按钮)

javascript - SyntaxHighlighter:如何删除石灰色问号或至少更改其颜色?

javascript - js SyntaxHighlighter 中的自动换行

javascript - 创建 Node-Red 自定义 Node : config not working, 显示文本框而不是配置下拉列表

node.js - MongoDB:$lookup 返回空数组

JavaScript localStorage 对象在 Windows 7 的 IE11 中损坏

c# - Windows 7 中的特殊文件夹引发异常

node.js - 时区或位置与 UTC 的偏移量