“npm install -g stf”在设置 Stf 时显示错误

Posted

技术标签:

【中文标题】“npm install -g stf”在设置 Stf 时显示错误【英文标题】:"npm install -g stf" shows error while Stf set up 【发布时间】:2017-07-02 14:05:09 【问题描述】:
"I am trying to set up STF(SmartPhone test farm), but while installing NPM and firing command "npm install -g stf" in terminal i

我收到以下错误。 "

Enter code here

sh-3.2# npm install -g stf
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
/usr/local/bin/stf -> /usr/local/lib/node_modules/stf/bin/stf

> dtrace-provider@0.8.0 install /usr/local/lib/node_modules/stf/node_modules/bunyan/node_modules/dtrace-provider
> node scripts/install.js


> dtrace-provider@0.7.1 install /usr/local/lib/node_modules/stf/node_modules/dtrace-provider
> node scripts/install.js


> bufferutil@1.3.0 install /usr/local/lib/node_modules/stf/node_modules/bufferutil
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/var/root/.node-gyp/6.9.5"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/stf/node_modules/bufferutil/.node-gyp"
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command

线工具实例

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command

线工具实例

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node

> jpeg-turbo@0.4.0 install /usr/local/lib/node_modules/stf/node_modules/jpeg-turbo
> node-pre-gyp install --fallback-to-build

gyp WARN EACCES user "root" does not have permission to access the dev dir "/var/root/.node-gyp/6.9.5"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/.node-gyp"
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command

线工具实例

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command

线工具实例

make: *** No rule to make target `../.node-gyp/6.9.5/include/node/common.gypi', needed by `Makefile'. 

停下来。 吉普错误!构建错误 吉普错误!堆栈错误:make 失败,退出代码:2 吉普错误! ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) 的堆栈 吉普错误!堆栈在 emitTwo (events.js:106:13) 吉普错误! ChildProcess.emit (events.js:191:7) 的堆栈 吉普错误!堆栈在 Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) 吉普错误!系统达尔文 15.3.0 吉普错误!命令“/usr/local/bin/node”“/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “构建” “--fallback-to-build” “--module=/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/lib/binding/node-v48-darwin-x64/jpegturbo.node” “--module_name=jpegturbo” “--module_path=/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/lib/binding/node-v48-darwin-x64” 吉普错误! cwd /usr/local/lib/node_modules/stf/node_modules/jpeg-turbo 吉普错误!节点-v v6.9.5 吉普错误!节点gyp -v v3.4.0 吉普错误!不好 节点预gyp错误!构建错误 节点预gyp错误!堆栈错误:无法执行'/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js 构建 --fallback-to-build --module=/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/lib/binding/node-v48-darwin-x64/jpegturbo.node --module_name=jpegturbo --module_path=/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/lib/binding/node-v48-darwin-x64' (1) 节点预gyp错误! ChildProcess 的堆栈。 (/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/node_modules/node-pre-gyp/lib/util/compile.js:83:29) 节点预gyp错误!堆栈在 emitTwo (events.js:106:13) 节点预gyp错误! ChildProcess.emit (events.js:191:7) 的堆栈 节点预gyp错误!堆栈在可能关闭(内部/child_process.js:877:16) 节点预gyp错误!堆栈在 Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 节点预gyp错误!系统达尔文 15.3.0 节点预gyp错误!命令“/usr/local/bin/node”“/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/node_modules/.bin/node-pre-gyp” “安装” “--fallback-to-build” 节点预gyp错误! cwd /usr/local/lib/node_modules/stf/node_modules/jpeg-turbo 节点预gyp错误!节点-v v6.9.5 节点预gyp错误!节点预gyp -v v0.6.19 节点预gyp错误!不好 无法执行 '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js 构建 --fallback-to-build --module=/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/lib/binding/node-v48-darwin-x64/jpegturbo.node --module_name=jpegturbo --module_path=/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/lib/binding/node-v48-darwin-x64' (1) /usr/local/lib └──(空)

npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "stf"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! jpeg-turbo@0.4.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the jpeg-turbo@0.4.0 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the jpeg-turbo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs jpeg-turbo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls jpeg-turbo
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/indianic/npm-debug.log
npm ERR! code 1

【问题讨论】:

Tiwani 你能解决这个问题吗?我们也遇到了同样的问题。 【参考方案1】:

Help!!! #1961

似乎遇到了同样的问题,希望他们的修复对您有用。

【讨论】:

以上是关于“npm install -g stf”在设置 Stf 时显示错误的主要内容,如果未能解决你的问题,请参考以下文章

我们可以在 rdl(s-s-rs 报告)文件的文本上设置 onblur 事件吗?

2060s hivesos设置

Linux 特殊位权限s,t,i,a

为 s-s-rS 堆积条形图报表设置动态高度

Linux中的特殊权限stia

如何使用java在执行位(s)权限上设置组ID