続き。まず、
sudo npm install -g expo-cli
を試みていたのに、ログをよく見ると permission deniedが出ていた件。
参考リンクはDockerだけどmacでも同じことではなかろうかと思い
sudo npm install --unsafe-perm -g expo-cli
と –unsafe-perm をつけるんだそう…
やった、permission denied 消えた。
一方
create-react-native-app (アプリ名称)
と試すと
UnhandledPromiseRejectionWarning: Error: Cannot find module '(アプリ名称)/node_modules/react-native-scripts/build/scripts/init.js'
とか言われる件。
create-react-native-app (アプリ名称)
から誤っていた模様。orz
UnhandledPromiseRejectionWarning: Error: Cannot find module ‘init.js’ · Issue #770 · expo/create-react-native-app
Dismiss GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. Sign up This was referenced Oct 1, 2018 You can’t perform that action at this time. You signed in with another tab or window. You signed out in another tab or window.
Had to run the following commands:
$ npm install -g expo-cli $ expo init my-app $ cd my-app/ $ npm start
かくして、Open up App.js to start working on your app! と言ってもらえた。ばんざーい。
さて、さっき
react-native init test001
を走らせて、素のReact Nativeプロジェクトを作ろうとしたら
New minor version of npm available! 6.7.0 → 6.11.1
Changelog: https://github.com/npm/cli/releases/tag/v6.11.1
Run npm install -g npm to update!
と言われていたんだ。
対策しておくか…。
コメント