世博开始停止为我工作。当我输入这个,我得到:
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和一切工作,但后来我得到这个错误
所有模块都安装好了,我也试着重新安装,但它没有帮助。
我该怎么做