首页 文章

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

提问于
浏览
1

“我正在尝试设置STF(SmartPhone测试服务器场),但在终端i中安装NPM并触发命令”npm install -g stf“
我遇到了以下错误 . “ 在此处输入代码

sh-3.2 #npm install -g stf
npm WARN不推荐使用node-uuid@1.4.7:改为使用uuid模块
/ 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用户“root”无权访问dev目录“/var/root/.node-gyp/6.9.5”
gyp WARN EACCES尝试使用临时dev目录重新安装“/usr/local/lib/node_modules/stf/node_modules/bufferutil/.node-gyp”
xcode-select:错误:工具'xcodebuild'需要Xcode,但是活动的开发人员目录'/ Library / Developer / CommandLineTools'是一个命令
行工具实例xcode-select:错误:工具'xcodebuild'需要Xcode,但是活动的开发人员目录'/ Library / Developer / CommandLineTools'是一个命令
line tools instance 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用户“root”无权访问dev目录“/var/root/.node-gyp/6.9.5”
gyp WARN EACCES尝试使用临时dev目录重新安装“/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/.node-gyp”
xcode-select:错误:工具'xcodebuild'需要Xcode,但是活动的开发人员目录'/ Library / Developer / CommandLineTools'是一个命令
行工具实例xcode-select:错误:工具'xcodebuild'需要Xcode,但是活动的开发人员目录'/ Library / Developer / CommandLineTools'是一个命令
line tools instance make:***没有规则来制作Makefile'所需的目标../.node-gyp/6.9.5/include/node/common.gypi' .
停止 . gyp ERR!构建错误gyp ERR!堆栈错误:退出代码失败:2 gyp ERR!在ChildProcess.onExit堆栈(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)gyp ERR!堆栈在emitTwo(events.js:106:13)gyp ERR!在ChildProcess.emit堆栈(events.js:191:7)gyp ERR! Process.ChildProcess._handle.onexit(internal / child_process.js:215:12)gyp ERR!系统达尔文15.3.0 gyp ERR!命令“/ usr / local / bin / node”“/ usr / local / lib / node_modules / npm / node_modules / node-gyp / bin / node -gyp.js”“build”“--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“gyp ERR! cwd / usr / local / lib / node_modules / stf / node_modules / jpeg-turbo gyp ERR! node -v v6.9.5 gyp ERR! node-gyp -v v3.4.0 gyp ERR!不好节点-pre-gyp ERR!构建错误节点-pre-gyp ERR!堆栈错误:无法执行'/ usr / local / bin / node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --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)node-pre-gyp ERR!在ChildProcess堆栈 . (/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/node_modules/node-pre-gyp/lib/util/compile.js:83:29)node-pre-gyp ERR!堆栈在emitTwo(events.js:106:13)node-pre-gyp ERR!堆栈在ChildProcess.emit(events.js:191:7)node-pre-gyp ERR!堆栈在maybeClose(internal / child_process.js:877:16)node-pre-gyp ERR! Process.ChildProcess._handle.onexit(internal / child_process.js:226:5)node-pre-gyp ERR!系统Darwin 15.3.0 node-pre-gyp ERR!命令“/ usr / local / bin / node”“/ usr / local / lib / node_modules / stf / node_modules / jpeg-turbo / node_modules / .bin / node-pre -gyp”“install”“--fallback-to-构建“node-pre-gyp ERR! cwd / usr / local / lib / node_modules / stf / node_modules / jpeg-turbo node-pre-gyp ERR! node -v v6.9.5 node-pre-gyp ERR! node-pre-gyp -v v0.6.19 node-pre-gyp ERR!不行无法执行'/ usr / local / bin / node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --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!达尔文15.3.0
错误的ERR! argv“/ usr / local / bin / node”“/ usr / local / bin / npm”“install”“ - g”“stf”
错误的ERR!节点v6.9.5
错误的ERR! npm v3.10.10
错误的ERR!代码ELIFECYCLE
错误的ERR! jpeg-turbo@0.4.0安装:node-pre-gyp install --fallback-to-build
错误的ERR!退出状态1
错误的ERR!
错误的ERR!在jpeg-turbo@0.4.0安装脚本'node-pre-gyp install --fallback-to-build'失败 .
错误的ERR!确保安装了最新版本的node.js和npm .
错误的ERR!如果你这样做,这很可能是jpeg-turbo包的一个问题,
错误的ERR!不是与npm本身 .
错误的ERR!告诉作者你的系统失败了:
错误的ERR! node-pre-gyp install --fallback-to-build
错误的ERR!您可以通过以下方式获取有关如何为此项目打开问题的信息:
错误的ERR! npm bugs jpeg-turbo
错误的ERR!或者,如果没有,您可以通过以下方式获取他们的信息:
错误的ERR! npm老板ls jpeg-turbo
错误的ERR!上面可能有额外的日志记录输出 .
错误的ERR!请在任何支持请求中包含以下文件:
错误的ERR! /Users/indianic/npm-debug.log
错误的ERR!代码1

1 回答

  • 0

    Help!!! #1961

    似乎有同样的问题,希望他们的解决方案适合你 .

相关问题