Firebase工具安装失败,并显示npm ERR! enoent ENOENT:没有这样的文件或目录

时间:2019-03-19 11:21:40

标签: node.js firebase npm firebase-cli

我正在尝试安装Firebase CLI,但出现此错误:

  

WARN tar EISDIR:在目录上非法操作,打开   '/ usr / local / lib / node_modules /

然后这个:

  

npm错误! enoent ENOENT:没有这样的文件或目录,chmod   '/usr/local/lib/node_modules/firebase/node_modules/grpc/node_modules/detect-libc/bin/detect-libc.js'

我尝试了from bokeh.models.ranges import DataRange1d from bokeh.plotting import figure, show from bokeh.layouts import Row from bokeh.palettes import Greys from bokeh.models import LinearColorMapper, ColorBar import numpy as np arr = np.array([[1, 2, 3], [4, 5, 6]]) sx = 3 sy = 2 x_range = DataRange1d(start = 0, end = sx, bounds = (0, sx), range_padding = 5, range_padding_units = 'percent') y_range = DataRange1d(start = 0, end = sy, bounds = (0, sy), range_padding = 5, range_padding_units = 'percent') pw = 400 ph = pw * sy / sx plot = figure(plot_width = pw, plot_height = ph, x_range = x_range, y_range = y_range, match_aspect = True) plot.image([arr], x = 0, y = 0, dw = sx, dh = sy) color_mapper = LinearColorMapper(palette = Greys[6], low = arr.min(), high = arr.max()) colorbar_plot = figure(plot_height = ph, plot_width = 69, x_axis_location = None, y_axis_location = None, title = None, tools = '', toolbar_location = None) colorbar = ColorBar(color_mapper = color_mapper, location = (0, 0)) colorbar_plot.add_layout(colorbar, 'left') show(Row(plot, colorbar_plot)) ,然后:

sudo

但是它仍然不起作用。

如何正确安装Firebase工具?

0 个答案:

没有答案