Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js can';t在谷歌云功能中安装npm包_Node.js_Firebase_Google Cloud Platform_Google Cloud Functions - Fatal编程技术网

Node.js can';t在谷歌云功能中安装npm包

Node.js can';t在谷歌云功能中安装npm包,node.js,firebase,google-cloud-platform,google-cloud-functions,Node.js,Firebase,Google Cloud Platform,Google Cloud Functions,我对使用谷歌云功能是新手。我试图在我的谷歌云功能文件夹中使用expressjs。我在终端上运行npm I express。但我会犯这样的错误 npm WARN saveError ENOENT: no such file or directory, open '/Users/muchammadagunglaksana/package.json' npm WARN enoent ENOENT: no such file or directory, open '/Users/muchammadagu

我对使用谷歌云功能是新手。我试图在我的谷歌云功能文件夹中使用expressjs。我在终端上运行
npm I express
。但我会犯这样的错误

npm WARN saveError ENOENT: no such file or directory, open '/Users/muchammadagunglaksana/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/muchammadagunglaksana/package.json'
npm WARN muchammadagunglaksana No description
npm WARN muchammadagunglaksana No repository field.
npm WARN muchammadagunglaksana No README data
npm WARN muchammadagunglaksana No license field.

+ express@4.17.1
updated 1 package and audited 17547 packages in 4.294s
包似乎已安装,但express dependecies不会自动添加到package.json上

运行命令之前,将目录(
cd
)更改为函数文件夹。npm假定package.json位于当前工作目录中,以便对其进行更改