Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail with SyntaxError: Unexpected end of JSON input #12

Open
Akiyamka opened this issue Sep 14, 2021 · 2 comments
Open

Fail with SyntaxError: Unexpected end of JSON input #12

Akiyamka opened this issue Sep 14, 2021 · 2 comments

Comments

@Akiyamka
Copy link

   ➜  npx npm-viewscripts
Need to install the following packages:
  npm-viewscripts
Ok to proceed? (y) y

No potentially unsafe scripts found.
undefined:1


SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at /home/username/.npm/_npx/b4f17dfd428193b3/node_modules/npm-viewscripts/index.js:12:22
    at directoryTree (/home/cherrytea/.npm/_npx/b4f17dfd428193b3/node_modules/directory-tree/lib/directory-tree.js:108:7)
    at /home/username/.npm/_npx/b4f17dfd428193b3/node_modules/directory-tree/lib/directory-tree.js:121:21
    at Array.map (<anonymous>)
    at directoryTree (/home/cherrytea/.npm/_npx/b4f17dfd428193b3/node_modules/directory-tree/lib/directory-tree.js:121:8)
    at /home/username/.npm/_npx/b4f17dfd428193b3/node_modules/directory-tree/lib/directory-tree.js:121:21
    at Array.map (<anonymous>)
    at directoryTree (/home/cherrytea/.npm/_npx/b4f17dfd428193b3/node_modules/directory-tree/lib/directory-tree.js:121:8)
    at /home/username/.npm/_npx/b4f17dfd428193b3/node_modules/directory-tree/lib/directory-tree.js:121:21
   
➜  node -v
v16.4.1

➜ npm -v
7.19.1
   
@js-kyle
Copy link
Owner

js-kyle commented Sep 14, 2021

Thanks for the bug report - I will take a look

diyfr added a commit to diyfr/npm-viewscripts that referenced this issue Aug 26, 2022
Fail with SyntaxError: Unexpected end of JSON input js-kyle#12, and add source
@diyfr diyfr mentioned this issue Aug 26, 2022
@diyfr
Copy link
Contributor

diyfr commented Aug 26, 2022

PR15

js-kyle added a commit that referenced this issue Aug 28, 2022
js-kyle added a commit that referenced this issue Aug 28, 2022
js-kyle added a commit that referenced this issue Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants