安装RocketChat报错:npm WARN saveError ENOENT: no such file or directory, open ‘/tmp/bundle/programs/web.

安装RocketChat时,常见会遇到如下问题:
报错问题:
当执行

cd /tmp/bundle/programs/server && sudo npm install

报错如下:

npm WARN saveError ENOENT: no such file or directory, open ‘/tmp/bundle/programs/web.browser/package.json’
npm WARN enoent ENOENT: no such file or directory, open ‘/tmp/bundle/programs/web.browser/package.json’
npm WARN web.browser No description
npm WARN web.browser No repository field.
npm WARN web.browser No README data
npm WARN web.browser No license field.

解决方案:

[root@yfw Rocket.Chat]# nvm install 14.21.3 Downloading and installing node v14.21.3... Downloading https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-x64.tar.xz... ################################################################################################### 100.0% Computing checksum with sha256sum Checksums matched! Now using node v14.21.3 (npm v6.14.18) [root@yfw Rocket.Chat]# nvm use 14.21.3 Now using node v14.21.3 (npm v6.14.18) [root@yfw Rocket.Chat]# nvm alias default 14.21.3 default -> 14.21.3 (-> v14.21.3) [root@yfw Rocket.Chat]# node -v v14.21.3 [root@yfw Rocket.Chat]# cd /opt/Rocket.Chat/bundle [root@yfw bundle]# export MONGO_URL="mongodb://localhost:27017/rocketchat" [root@yfw bundle]# export ROOT_URL="http://szrengjing.com" [root@yfw bundle]# export PORT=3000 [root@yfw bundle]# rm -rf node_modules [root@yfw bundle]# npm install --unsafe-perm npm WARN saveError ENOENT: no such file or directory, open '/opt/Rocket.Chat/bundle/package.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open '/opt/Rocket.Chat/bundle/package.json' npm WARN bundle No description npm WARN bundle No repository field. npm WARN bundle No README data npm WARN bundle No license field. up to date in 0.945s found 0 vulnerabilities ╭────────────────────────────────────────────────────────────────╮ │ │ │ New major version of npm available! 6.14.18 → 11.6.2 │ │ Changelog: https://github.com/npm/cli/releases/tag/v11.6.2 │ │ Run npm install -g npm to update! │ │ │ ╰────────────────────────────────────────────────────────────────╯ [root@yfw bundle]#
最新发布
11-11
ERROR Error: Failed to initialize react-native-reanimated library, make sure you followed installation steps here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/ 1) Make sure reanimated's babel plugin is installed in your babel.config.js (you should have 'react-native-reanimated/plugin' listed there - also see the above link for details) 2) Make sure you reset build cache after updating the config, run: yarn start --reset-cache ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native. LOG 44264 LOG 11390 LOG 12 ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native. WARN `new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method. WARN `new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method. ERROR Error: Failed to initialize react-native-reanimated library, make sure you followed installation steps here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/ 1) Make sure reanimated's babel plugin is installed in your babel.config.js (you should have 'react-native-reanimated/plugin' listed there - also see the above link for details) 2) Make sure you reset build cache after updating the config, run: yarn start --reset-cache ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native. LOG ENOENT: open failed: ENOENT (No such file or directory), open '/storage/emulated/0/xioliftmes/loginfo.txt' LOG ENOENT: open failed: ENOENT (No such file or directory), open '/storage/emulated/0/xioliftmes/logexception.txt' LOG ENOENT: open failed: ENOENT (No such file or directory), open '/storage/emulated/0/xioliftmes/logerror.txt' ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
08-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

听说唐僧不吃肉

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值