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!
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
Most helpful comment
Hi,
try:
sudo npm install -g azure-functions-core-tools/@core --unsafe-perm=true --allow-root