忍者和npm_executable-notfound

时间:2014-03-23 13:27:20

标签: node.js npm ninja

尝试从源代码构建Tangelo(第一次在此处),我可以通过Git Bash和忍者获得90%的流程,但最后一部分流程无效。

将cd发送到我的构建目录~/tangelo/build并使用Gi​​tBash运行ninja我收到以下错误:

$ ninja
[6/135] Installing phantomjs
FAILED: cmd.exe /c cd /D C:\Users\usr\tangelo\build && NPM_EXECUTABLE-NOTFOUND
install phantomjs
$ ninja
[6/132] Installing uglify-js
FAILED: cmd.exe /c cd /D C:\Users\usr\tangelo\build && NPM_EXECUTABLE-NOTFOUND
install uglify-js
'NPM_EXECUTABLE-NOTFOUND' is not recognized as an internal or external command,
operable program or batch file.
[6/132] Installing phantomjs
FAILED: cmd.exe /c cd /D C:\Users\usr\tangelo\build && NPM_EXECUTABLE-NOTFOUND
install phantomjs
'NPM_EXECUTABLE-NOTFOUND' is not recognized as an internal or external command,
operable program or batch file.
[6/132] Creating virtual Python environment
New python executable in C:/Users/usr/tangelo/build/venv\Scripts\python.exe
Installing setuptools.................done.
Installing pip...................done.
Running virtualenv with interpreter c:/Python27/python.exe
ninja: build stopped: subcommand failed.

我从here安装了Windows节点(env var设置为C:\nodejs,其中node.exe是)并且在重新启动后可以安装在上面的代码中显示错误的软件包(uglify-js和phantomjs)

问题是:如何让忍者了解我的节点/ npm install?

2 个答案:

答案 0 :(得分:0)

问题解决了......但是还有其他错误

我必须运行' cmake -G Ninja ../'在运行忍者之前再次命令。很明显,因为我在制作了cmake构建文件之后安装了节点。

现在我似乎遇到了忍者和点子的问题

答案 1 :(得分:0)

的Bonjour, 有效的Tangelo sous Windows一个quelques soucis 1)安装和运行(运行)节点dans une fenetre de commandes 2)小心,il semble dans'.. \ tangelo \ build \ node_modules.bin'(在bin之前删除点)

ninja --< errors >-- "..\tangelo\build\tangelo\web" ... not of tangelo.js (???)
but in sdist ... finally tangelo.XXX.dev.zip (???)
in gitbash pip install this zip --> localhost:8080 --> surprise !!!
but all not seem allright ( for me, under Win8.1, portable)