Open WaldemarEnns opened 4 years ago
for me when I run npm install I get this error : npm ERR! Unexpected end of JSON input while parsing near '...ICT+J7HIj5T2Lt1jTBwoX' how I fixed it: on windows10 : 1- I run rm -rf node_modules to delete the node_modules folder. 2- then did npm cache clear --force. 3- run npm install again. and it worked.
Hi, I altered part of the template to look like this - and this works after updating npm etc.
<post
v-for="post in posts"
:key="post"
v-bind:post="post"
v-bind:username="getUserName(post)"
@delete-post="deletePost"
@err="updateErr"
></post>
Seems like we need to define the key.
Problem
When i try to install the dependencies, the following errors are being showed:
Console output
Logfile output
How to reproduce
git clone https://github.com/anthonygore/vue-casl-demo.git
cd vue-casl-demo
npm install
Seems to be a similar error as i get on the official casl-vue example: https://github.com/stalniy/casl-vue-api-example/issues/5
Could you take a look at it and maybe fix the dependencies? It seems that CASL was split up into different packages, which now have to be updated ...
EDIT
I could resolve my issue on https://github.com/stalniy/casl-vue-api-example/issues/5 . I just had ro run
npm ci
and could install the whole package-dependencies with thepackage-lock.json
.I wanted to do it in this case here too, but i couldn't, since it has no
package-lock.json
.