Open MiracelVip opened 6 years ago
Have you tried running sudo npm install
?
Method Not Allowed
being the error seems to me like a permissions issue.
Thank you for the note about npm not being available on the latest Raspbian, I'll put something in the next patch that mentions how to install npm to begin with.
I just Googled your error, the first thing that popped up looks like the exact same error you're running into, down to the line number the error occurs from. Maybe the way you installed npm installed a version that is extremely out of date?
https://github.com/npm/npm/issues/20896
Edit: And looking at your debugger output, it seems like you're trying to use npm version 1.4.21, which is extremely out of date.
If using Raspbian, you probably used archive package: pool/main/n/npm/npm_1.4.21+ds-2_all.deb
Unfortunately AFAIK there is no backport repository for Raspbian, maybe a community repo exists but I don't know any.
Workaround is to fallback to nvm package manager:
nvm install --lts=carbon ; nvm use --lts=carbon
npm --version
5.6.0
Related:
I tried to install the SDK but it's not working with latest raspian. npm is not part of raspian anymore.
Also the tutorial is wrong. After clone you have to "cd swill-sdk". This is the output of "npm install":
and this is the debug.log
I installed mpm by: sudo apt-get install nodejs npm
maybe wrong version?