停止工作“世博开始”.错误:"在项目中找不到路径."

2022-01-30 14:45:14 标签 react-nativeexpobcrypt

世博开始停止为我工作。当我输入这个,我得到:

PS D:\sasha\VScodeProjects\Project\ReactTestProject\my-project2> expo start
┌─────────────────────────────────────────────────────────────────────────┐
│                                                                         │
│   There is a new version of expo-cli available (4.11.0).                │
│   You are currently using expo-cli 4.10.0                               │
│   Install expo-cli globally using the package manager of your choice;   │
│   for example: `npm install -g expo-cli` to get the latest version      │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘
Starting project at D:\sasha\VScodeProjects\Project\ReactTestProject\my-project2
Developer tools running on http://localhost:19002
Opening developer tools in the browser...
Starting Metro Bundler
 ? Waiting on exp://192.168.0.103:19000
 ? Scan the QR code above with Expo Go (Android) or the Camera app (iOS)
 ? Press a │ open Android
 ? Press w │ open web
 ? Press r │ reload app
 ? Press m │ toggle menu
 ? Press d │ show developer tools
 ? shift+d │ toggle auto opening developer tools on startup (enabled)
 ? Press ? │ show all commands
Logs for your project will appear below. Press Ctrl+C to exit.
info Launching Dev Tools...
Failed building JavaScript bundle.
Unable to resolve module path from D:\sasha\VScodeProjects\Project\ReactTestProject\my-project2\server_template-master\node_modules\bcrypt\bcrypt.js: path could not be found within the project.
If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
  2 |
  3 | var nodePreGyp = require('@mapbox/node-pre-gyp');
> 4 | var path = require('path');
    |                     ^
  5 | var binding_path = nodePreGyp.find(path.resolve(path.join(__dirname, './package.json')));
  6 | var bindings = require(binding_path);

我可以看到问题是“路径”,但我不知道它指的是什么。

我曾经使用bcrypt和一切工作,但后来我得到这个错误

所有模块都安装好了,我也试着重新安装,但它没有帮助。

我该怎么做

阅读全文

▼ 版权说明

相关文章也很精彩
推荐内容
更多标签
相关热门
全站排行
随便看看

错说 cuoshuo.com —— 程序员的报错记录

部分内容根据CC版权协议转载;网站内容仅供参考,生产环境使用务必查阅官方文档

辽ICP备19011660号-5

×

扫码关注公众号:职场神器
发送: 1
获取永久解锁本站全部文章的验证码