“ npm install expo-cli --global”不起作用

我正在尝试安装expo-cli,但是由于某些原因,我正在收到此错误。

npm WARN deprecated joi@14.0.4: 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 ERR! Unexpected end of JSON input while parsing near '...":{"caniuse-db":"^1.0'

我也尝试 npm install expo-cli -g --unsafe-perm

npm install expo-cli -g --unsafe-perm = true --allow-root

但是这也不起作用。我该如何解决这个问题?

zgyifei 回答:“ npm install expo-cli --global”不起作用

webdriver.get('https://www.instagram.com/explore/tags/'+ hashtag_list[tag] + '/') sleep(5) check='//*[@id="react-root"]/section/main/article/div[2]/div/div[%d]/div[%d]/a/div' %(i,x) sleep(10) #'//*[@id=\"react-root\"]/section/main/article/div[1]/div/div/div[1]/div[%s]/a/div' % (x) first_thumbnail = webdriver.find_element_by_xpath(check) first_thumbnail.click() sleep(10) webdriver.find_element_by_xpath('/html/body/div[3]/div[2]/div/article/div[2]/section[1]/span[2]/button/span').click() sleep(10) comment_box = webdriver.find_element_by_xpath('/html/body/div[3]/div[2]/div/article/div[2]/section[3]/div/form/textarea') sleep(20) comment_box.send_keys("Hi") # this line does not work sleep(10) webdriver.find_element_by_xpath('/html/body/div[3]/div[2]/div/article/div[2]/section[3]/div/form/button').click() sleep(10) except: print("Oops!") sleep(10) continue admin的身份打开终端。

检查npm的注册表,应为sudo

Npm使用缓存为您下载新软件包。您需要清除npm缓存。使用以下命令进行清理并安装:

https://registry.npmjs.org/

它为我工作。

本文链接:https://www.f2er.com/3091189.html

大家都在问