节点和npm出现问题。尝试在全球范围内安装“ expo-cli”,但遇到一些错误

时间:2019-12-08 03:53:52

标签: node.js npm expo

我正在尝试全局安装expo-cli,但出现以下错误:

$ npm install -g expo-cli

npm WARN deprecated joi@14.0.4: This version has been deprecated in accordance with the hapi support policy (hapistrong text.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).**

npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size

npm WARN deprecated core-js@2.6.10: core-js@<3.0 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

npm WARN deprecated joi@11.4.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

npm WARN deprecated topo@2.0.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

npm WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

npm WARN deprecated hoek@6.1.3: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.

npm WARN deprecated topo@3.0.3: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.

> @expo/traveling-fastlane-linux@1.11.0 preinstall C:\Users\Oz\.npm-global\node_modules\expo-cli\node_modules\@expo\traveling-fastlane-linux
> node platform.js

Does not seem like WSL enabled on this machine. Download a Linux distro from the Windows Store, run it at least onceand then make sure to run in an admin powershell:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
C:\Users\Oz\.npm-global\expo-cli -> C:\Users\Oz\.npm-global\node_modules\expo-cli\bin\expo.js
C:\Users\Oz\.npm-global\expo -> C:\Users\Oz\.npm-global\node_modules\expo-cli\bin\expo.js

> dtrace-provider@0.8.8 install C:\Users\Oz\.npm-global\node_modules\expo-cli\node_modules\dtrace-provider
> node-gyp rebuild || node suppress-error.js


C:\Users\Oz\.npm-global\node_modules\expo-cli\node_modules\dtrace-provider>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
^C^CTerminate batch job (Y/N)?

我尝试单独更新依赖项,但是运行“ npm init”后,我收到此警告:

$ npm i @hapi/topo

npm WARN oz@1.0.0 No repository field.

+ @hapi/topo@4.0.1

added 1 package, updated 1 package and audited 10 packages in 1.192s

found 0 vulnerabilities

似乎,依赖项未更新,因为在运行“ npm install -g expo-cli”时收到相同的原始警告 任何想法都很棒!

0 个答案:

没有答案