Firebase-functions: Cannot install firebase-functions

Created on 9 Apr 2017  ยท  2Comments  ยท  Source: firebase/firebase-functions

I am currently unable to firebase deploy because firebase-functions won't get installed, and it won't even omit them when I tell it to during firebase init.

Here is the problem with firebase-functions in particular:

During npm install in my functions folder, I am told that the @types/express dependency does not exist:

npm http 404 https://registry.npmjs.org/types/express
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'types/express' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'firebase-functions'

When just running npm install --save @types/express, I get a different error:

d:\code\self-asssessment-app\functions>npm install --save @types/express
npm WARN git config --get remote.origin.url returned wrong result (git://github.com/types/express)
npm WARN git config --get remote.origin.url returned wrong result ([email protected]:types/express)
npm ERR! git clone [email protected]:types/express Cloning into bare repository 'C:\Users\DomiAppData\Roaming\npm-cache_git-remotes\git-github-com-types-express-baf9b5a2'...
npm ERR! git clone [email protected]:types/express Permission denied (publickey).
npm ERR! git clone [email protected]:types/express fatal: Could not read from remote repository.
npm ERR! git clone [email protected]:types/express
npm ERR! git clone [email protected]:types/express Please make sure you have the correct access rights
npm ERR! git clone [email protected]:types/express and the repository exists.
npm ERR! addLocal Could not install types/express
npm ERR! Error: ENOENT: no such file or directory, stat 'd:\code\self-asssessment-app\functions\types\express'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\ProgramData\chocolatey\lib\npm\tools\node_modules\npm\bin\npm-cli.js" "install" "--save" "@types/express"
npm ERR! cwd d:\code\self-asssessment-app\functions
npm ERR! node -v v7.2.1
npm ERR! npm -v 1.4.9
npm ERR! path d:\code\self-asssessment-app\functions\types\express
npm ERR! syscall stat
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! d:\code\self-asssessment-app\functions\npm-debug.log
npm ERR! not ok code 0

I am on Windows, and my firebase-tools are the latest version:

$npm list -g firebase-tools
C:\Program Filesnodejs
โ””โ”€โ”€ [email protected]

functions/package.json contains the following dependencies (and functions/node_modules is empty):

  "dependencies": {
    "firebase-admin": "^4.1.2",
    "firebase-functions": "^0.5"
  }

Any help would be greatly appreciated. Also, it worked just fine yesterday... on a different machine though...

Most helpful comment

You are on an old version of npm. Please upgrade to the latest version and
try again.

On Sun, Apr 9, 2017, 11:03 AM Domi notifications@github.com wrote:

During npm install in my functions folder, I am told that the
@types/express dependency does not exist:

npm http 404 https://registry.npmjs.org/types/express
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'types/express' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'firebase-functions'

When just running npm install --save @types/express, I get a different
error:

d:\code\self-asssessment-appfunctions>npm install --save @types/express
npm WARN git config --get remote.origin.url returned wrong result (git://
github.com/types/express)
npm WARN git config --get remote.origin.url returned wrong result (
[email protected]:types/express)
npm ERR! git clone [email protected]:types/express Cloning into bare
repository
'C:\Users\DomiAppData\Roaming\npm-cache_git-remotes\git-github-com-types-express-baf9b5a2'...
npm ERR! git clone [email protected]:types/express Permission denied
(publickey).
npm ERR! git clone [email protected]:types/express fatal: Could not read
from remote repository.
npm ERR! git clone [email protected]:types/express
npm ERR! git clone [email protected]:types/express Please make sure you have
the correct access rights
npm ERR! git clone [email protected]:types/express and the repository exists.
npm ERR! addLocal Could not install types/express
npm ERR! Error: ENOENT: no such file or directory, stat
'd:\code\self-asssessment-appfunctions\types\express'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
https://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Filesnodejsnode.exe"
"C:\ProgramData\chocolatey\lib\npm\toolsnode_modules\npmbin\npm-cli.js"
"install" "--save" "@types/express"
npm ERR! cwd d:\code\self-asssessment-appfunctions
npm ERR! node -v v7.2.1
npm ERR! npm -v 1.4.9
npm ERR! path d:\code\self-asssessment-appfunctions\types\express
npm ERR! syscall stat
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! d:\code\self-asssessment-appfunctions\npm-debug.log
npm ERR! not ok code 0

I am on Windows, and my firebase-tools are the latest version:

$npm list -g firebase-tools
C:\Program Filesnodejs
โ””โ”€โ”€ [email protected]

functions/package.json contains the following dependencies:

"dependencies": {
"firebase-admin": "^4.1.2",
"firebase-functions": "^0.5"
}

Any help would be greatly appreciated. Also, it worked just fine
yesterday... on a different machine though...

โ€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/firebase/firebase-functions/issues/30, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAAD_n-WczhIjOCHWl2f8QpbJT696rehks5ruR15gaJpZM4M4GY3
.

All 2 comments

You are on an old version of npm. Please upgrade to the latest version and
try again.

On Sun, Apr 9, 2017, 11:03 AM Domi notifications@github.com wrote:

During npm install in my functions folder, I am told that the
@types/express dependency does not exist:

npm http 404 https://registry.npmjs.org/types/express
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'types/express' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'firebase-functions'

When just running npm install --save @types/express, I get a different
error:

d:\code\self-asssessment-appfunctions>npm install --save @types/express
npm WARN git config --get remote.origin.url returned wrong result (git://
github.com/types/express)
npm WARN git config --get remote.origin.url returned wrong result (
[email protected]:types/express)
npm ERR! git clone [email protected]:types/express Cloning into bare
repository
'C:\Users\DomiAppData\Roaming\npm-cache_git-remotes\git-github-com-types-express-baf9b5a2'...
npm ERR! git clone [email protected]:types/express Permission denied
(publickey).
npm ERR! git clone [email protected]:types/express fatal: Could not read
from remote repository.
npm ERR! git clone [email protected]:types/express
npm ERR! git clone [email protected]:types/express Please make sure you have
the correct access rights
npm ERR! git clone [email protected]:types/express and the repository exists.
npm ERR! addLocal Could not install types/express
npm ERR! Error: ENOENT: no such file or directory, stat
'd:\code\self-asssessment-appfunctions\types\express'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
https://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Filesnodejsnode.exe"
"C:\ProgramData\chocolatey\lib\npm\toolsnode_modules\npmbin\npm-cli.js"
"install" "--save" "@types/express"
npm ERR! cwd d:\code\self-asssessment-appfunctions
npm ERR! node -v v7.2.1
npm ERR! npm -v 1.4.9
npm ERR! path d:\code\self-asssessment-appfunctions\types\express
npm ERR! syscall stat
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! d:\code\self-asssessment-appfunctions\npm-debug.log
npm ERR! not ok code 0

I am on Windows, and my firebase-tools are the latest version:

$npm list -g firebase-tools
C:\Program Filesnodejs
โ””โ”€โ”€ [email protected]

functions/package.json contains the following dependencies:

"dependencies": {
"firebase-admin": "^4.1.2",
"firebase-functions": "^0.5"
}

Any help would be greatly appreciated. Also, it worked just fine
yesterday... on a different machine though...

โ€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/firebase/firebase-functions/issues/30, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAAD_n-WczhIjOCHWl2f8QpbJT696rehks5ruR15gaJpZM4M4GY3
.

Indeed, I am using Windows and chocolatey to manage my NPM installation, and used a deprecated package. Fixed it now. Thanks a lot! :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rhodgkins picture rhodgkins  ยท  5Comments

piuccio picture piuccio  ยท  4Comments

jspri picture jspri  ยท  5Comments

alexbjorlig picture alexbjorlig  ยท  6Comments

ahaverty picture ahaverty  ยท  6Comments