Open joaovarelas opened 5 years ago
Before we explore all other options have you done pown update
?
I'm running into the same issue.
$ pown update
(node:23723) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, mkdir '/home/dlawson/.pown/modules'
(node:23723) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:23723) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
If I manually create the missing folder, it creates an empty package.json in there and then I get:
$ pown update
x Unexpected reserved word
I'm seeing the same as fang0654 - I've tried creating the directory myself, then updating. Doesn't work.
I was having the same problem, upgraded to node v 11:
sudo npm install n -g
sudo n stable
Then everything worked fine.
r00t@K53:~$ pown whoarethey (node:24806) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, mkdir '/home/r00t/.pown/modules' (node:24806) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:24806) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Ubuntu 18.04 npm 3.5.2