"I am trying to set up STF(SmartPhone test farm), but while installing NPM and firing command "npm install -g stf" in terminal i
am getting following errors. "“故宫安装-g STF”显示错误,而STF设立
Enter code here sh-3.2# npm install -g stf npm WARN deprecated [email protected]: use uuid module instead /usr/local/bin/stf -> /usr/local/lib/node_modules/stf/bin/stf > [email protected] install /usr/local/lib/node_modules/stf/node_modules/bunyan/node_modules/dtrace-provider > node scripts/install.js > [email protected] install /usr/local/lib/node_modules/stf/node_modules/dtrace-provider > node scripts/install.js > [email protected] 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
line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command
line tools instance
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/bufferutil.node > [email protected] 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
line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command
line tools instance
make: *** No rule to make target `../.node-gyp/6.9.5/include/node/common.gypi', needed by `Makefile'.
Stop. gyp ERR! build error gyp ERR! stack Error:
make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Darwin 15.3.0 gyp ERR! command "/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! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/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! stack at 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! stack at emitTwo (events.js:106:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) node-pre-gyp ERR! System Darwin 15.3.0 node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" 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! not ok Failed to execute '/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 └── (empty)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! [email protected] install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] 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
1
A
回答
0
似乎也有同样的问题,希望他们的修复你的作品。
相关问题
- 1. 错误 “故宫安装-g strongloop” 在Ubuntu
- 2. “故宫安装”错误,Openshift
- 3. 的package.json与 “故宫安装%s -g”
- 4. 错误的“故宫安装socket.io”
- 5. 错误与故宫安装OpenCV
- 6. 错误而“故宫开始”
- 7. 无法安装mmmagic与故宫安装
- 8. 错误与故宫安装#7884 - NPM WARN锁定错误:EACCES
- 9. 错误与故宫安装离子时,在Windows上安装-g离子科尔多瓦10
- 10. 而对角phonecat目录下运行“故宫安装”得到了一个错误
- 11. 错误,当我写“流星故宫安装”
- 12. 错误“ETXTBSY:文本文件忙”在故宫安装
- 13. “故宫安装” - AngularJS2(打字稿) - 返回错误
- 14. 无效字符“故宫安装” nodemailer
- 15. 我不能与故宫安装了
- 16. 命令“故宫”有错误
- 17. 建立Gradle错误而jdk安装?
- 18. 节点failes通过安装工具 “故宫安装”
- 19. 错误而设立设计
- 20. 离子2:警告后,“故宫安装”
- 21. 节点JS错误,而安装故宫安装快车代码UNABLE_TO_VERIFY_LEAF_SIGNATURE无法验证
- 22. Scenebuilder显示错误安装
- 23. 显示错误安装
- 24. “故宫安装-g表达发电机” 使用这个命令在Ubuntu 16.04
- 25. 太多的NPM模块安装后执行“故宫安装”
- 26. 问题与“故宫安装”设置AngularJS项目,约曼
- 27. sudo npm -g sails->安装错误
- 28. 如何修复故宫安装反应列表过滤
- 29. 环境设置为hyperledger作曲家“故宫安装-g发电机hyperledger作曲家”?
- 30. “故宫安装-g的Bigcommerce模版/模版(CLI)”不能在Windows成功运行命令提示符
Tiwani你能解决这个问题吗?我们也遇到了同样的问题。 – ALM