ошибка npm, но пакет expo-cli установлен: prebuild-install WARN install EACCES: разрешение запрещено, доступ '/Users/pyop/.npm' - PullRequest
0 голосов
/ 27 февраля 2019

Я не уверен, является ли это проблемой или не является проблемой:

(expo-cli для разработки приложений на уровне рождений)

Я попытался удалить и переустановить узели npm, меняя разрешения с помощью chown из ссылок sym "/ usr / local blah blah", и все равно я получаю ошибки.

Должен ли я просто игнорировать их и начать работать над моим собственным приложением реагировать или нет?

Возможно, измените версию узла?

Somerss-MacBook-Pro:~ pyop$ node -v
v11.10.0
Somerss-MacBook-Pro:~ pyop$ npm -v
6.7.0

Somerss-MacBook-Pro:~ pyop$ sudo npm install -g expo-cli
Password:
/usr/local/bin/expo -> /usr/local/lib/node_modules/expo- 
cli/bin/expo.js
/usr/local/bin/expo-cli -> /usr/local/lib/node_modules/expo- 
cli/bin/expo.js

> node-pty-prebuilt@0.7.6 install /usr/local/lib/node_modules/expo- 
cli/node_modules/node-pty-prebuilt
> prebuild-install || node scripts/install.js

prebuild-install WARN install EACCES: permission denied, access 
'/Users/pyop/.npm'
gyp WARN EACCES user "root" does not have permission to access the dev 
dir "/Users/pyop/.node-gyp/11.10.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir 
"/usr/local/lib/node_modules/expo-cli/node_modules/node-pty- 
prebuilt/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir 
'/usr/local/lib/node_modules/expo-cli/node_modules/node-pty- 
prebuilt/.node-gyp'
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/Cellar/node/11.10.0/bin/node" 
"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node- 
gyp.js" "rebuild" "--build_v8_with_gn=false"
gyp ERR! cwd /usr/local/lib/node_modules/expo-cli/node_modules/node- 
pty-prebuilt
gyp ERR! node -v v11.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin- 
darwin-ia32@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin- 
darwin-ia32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
@expo/ngrok-bin-darwin-ia32@2.2.8: wanted 
{"os":"darwin","arch":"ia32"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin- 
freebsd-x64@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin- 
freebsd-x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
@expo/ngrok-bin-freebsd-x64@2.2.8: wanted 
{"os":"freebsd","arch":"x64"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin- 
freebsd-ia32@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok- 
bin-freebsd-ia32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
@expo/ngrok-bin-freebsd-ia32@2.2.8: wanted 
{"os":"freebsd","arch":"ia32"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux- 
arm@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin-linux- 
arm):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
@expo/ngrok-bin-linux-arm@2.2.8: wanted {"os":"linux","arch":"arm"} 
(current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux- 
arm64@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin-linux- 
arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
@expo/ngrok-bin-linux-arm64@2.2.8: wanted 
{"os":"linux","arch":"arm64"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux- 
ia32@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin-linux- 
ia32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
@expo/ngrok-bin-linux-ia32@2.2.8: wanted {"os":"linux","arch":"ia32"} 
(current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux- 
x64@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin-linux- 
x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
@expo/ngrok-bin-linux-x64@2.2.8: wanted {"os":"linux","arch":"x64"} 
(current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-sunos- 
x64@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin-sunos- 
x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
@expo/ngrok-bin-sunos-x64@2.2.8: wanted {"os":"sunos","arch":"x64"} 
(current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-win32- 
ia32@2.2.8-beta.1 (node_modules/expo-cli/node_modules/@expo/ngrok-bin- 
win32-ia32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
@expo/ngrok-bin-win32-ia32@2.2.8-beta.1: wanted 
{"os":"win32","arch":"ia32"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-win32- 
x64@2.2.8-beta.1 (node_modules/expo-cli/node_modules/@expo/ngrok-bin- 
win32-x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
@expo/ngrok-bin-win32-x64@2.2.8-beta.1: wanted 
{"os":"win32","arch":"x64"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/traveling- 
fastlane-linux@1.8.0 (node_modules/expo- 
cli/node_modules/@expo/traveling-fastlane-linux):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
@expo/traveling-fastlane-linux@1.8.0: wanted 
{"os":"win32,linux","arch":"any"} (current: 
{"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pty- 
prebuilt@0.7.6 (node_modules/expo-cli/node_modules/node-pty-prebuilt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pty- 
prebuilt@0.7.6 install: `prebuild-install || node scripts/install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ expo-cli@2.11.3
updated 1 package in 17.832s
Somerss-MacBook-Pro:~ pyop$ expo-cli --version
2.11.3

спасибо за помощь:)

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...