gpt4 book ai didi

node.js - 在 Ubuntu 上安装 React Native 初学者工具包期间,spawn-sync 安装后失败

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:44:55 28 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 14.04.4 上安装 React native 入门工具包 (Ignite),并在安装失败后继续获取 spawn-sync。

早些时候出现了 Eaccess 问题,我按照视频中的说明修复了它,

https://docs.npmjs.com/getting-started/fixing-npm-permissions

Node 版本 - v6.3.0npm 版本 - 3.10.3点燃 - https://github.com/infinitered/ignite

当我尝试全局安装 ignite 时,出现以下错误,

npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer     requires a build toolchain, use it instead!
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/root/.npm-global/bin/ignite -> /root/.npm-global/lib/node_modules/react-native-ignite/index.js

spawn-sync@1.0.15 postinstall /root/.npm-global/lib/node_modules/react-native-ignite/node_modules/spawn-sync
node postinstall
module.js:442
throw err;
^

Error: Cannot find module '/root/.npm-global/lib/node_modules/react- native-ignite/node_modules/spawn-sync/postinstall'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.runMain (module.js:575:10)
at run (bootstrap_node.js:352:7)
at startup (bootstrap_node.js:144:9)
at bootstrap_node.js:467:3
/root/.npm-global/lib
`-- (empty)

npm ERR! Linux 4.2.0-41-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "react- native-ignite"
npm ERR! node v6.3.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! spawn-sync@1.0.15 postinstall: node postinstall
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the spawn-sync@1.0.15 postinstall script 'node postinstall'.
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 spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node postinstall
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs spawn-sync
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/sith/react/myapplication/npm-debug.log
npm ERR! code 1

最佳答案

我按照普通用户的 npm 权限说明视频解决了我的问题。早些时候我用 root 用户尝试过这个,但对我来说效果不佳。

关于node.js - 在 Ubuntu 上安装 React Native 初学者工具包期间,spawn-sync 安装后失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38280278/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com