Azure-functions-core-tools: Cannot install azure-functions-core-tools@core on Ubuntu Xenial (16.04)

Created on 4 Dec 2017  路  3Comments  路  Source: Azure/azure-functions-core-tools

Script fails installation (npm i -g azure-functions-core-tools/@core) with output below:

`anael@Straylight:~/azure/functions/demo$ sudo npm i -g azure-functions-core-tools@core
/usr/local/bin/func -> /usr/local/lib/node_modules/azure-functions-core-tools/lib/main.js
/usr/local/bin/azfun -> /usr/local/lib/node_modules/azure-functions-core-tools/lib/main.js
/usr/local/bin/azurefunctions -> /usr/local/lib/node_modules/azure-functions-core-tools/lib/main.js

[email protected] postinstall /usr/local/lib/node_modules/azure-functions-core-tools
node lib/install.js

events.js:183
throw er; // Unhandled 'error' event
^

Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/azure-functions-core-tools/bin'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node lib/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/anael/.npm/_logs/2017-12-04T17_14_38_205Z-debug.log
`
Should mkdir run with '-p' in order to create the full path?

Thanks!

Most helpful comment

Hi,
try:
sudo npm install -g azure-functions-core-tools/@core --unsafe-perm=true --allow-root

All 3 comments

Hi,
try:
sudo npm install -g azure-functions-core-tools/@core --unsafe-perm=true --allow-root

Looks like that worked, thanks!

Works on my OS X, except needed to omit /@core

Was this page helpful?
0 / 5 - 0 ratings

Related issues

buragc picture buragc  路  6Comments

nebosite picture nebosite  路  3Comments

MattHoneycutt picture MattHoneycutt  路  4Comments

frozenbubble picture frozenbubble  路  4Comments

jackmusick picture jackmusick  路  4Comments