I'm getting the following error :
SyntaxError: Invalid or unexpected token
Also, I've read somewhere there is a possibility of using a zip file instead of a git repo and that would be fine for us but I didn't find documentation on how to do it this way.
Hey, @louis-marie.desurema welcome to the forum, and thanks for reaching out!
This is happening because the theme command only works with public GitHub repositories.
Your setup looks correct. As soon as you make the repo public, it should work just fine
Maybe you need to double-check that you are using the correct URL of your GitHub repository. If I open this one: https://github.com/mygithubid/prismic-theme it shows me a 'Page not found'.
This happens when you don't have the proper permissions on GitHub to access it.
I tried to completely uninstall and reinstall npm from my computer and there is some progress, I am now able to login with prismic cli and the token error is gone !
node:events:368
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, scandir '/home/linuxbrew/.linuxbrew/lib/node_modules/prismic-cli/node_modules/generator-prismic-angular2/lib/generators'
at Object.readdirSync (node:fs:1390:3)
at exports.readdir (/home/linuxbrew/.linuxbrew/lib/node_modules/prismic-cli/node_modules/@mrmlnc/readdir-enhanced/lib/sync/fs.js:18:20)
at Object.safeCall [as safe] (/home/linuxbrew/.linuxbrew/lib/node_modules/prismic-cli/node_modules/@mrmlnc/readdir-enhanced/lib/call.js:24:8)
at DirectoryReader.readNextDirectory (/home/linuxbrew/.linuxbrew/lib/node_modules/prismic-cli/node_modules/@mrmlnc/readdir-enhanced/lib/directory-reader.js:78:10)
at Readable.DirectoryReader.stream._read (/home/linuxbrew/.linuxbrew/lib/node_modules/prismic-cli/node_modules/@mrmlnc/readdir-enhanced/lib/directory-reader.js:57:18)
at Readable.read (node:internal/streams/readable:496:27)
at readdirSync (/home/linuxbrew/.linuxbrew/lib/node_modules/prismic-cli/node_modules/@mrmlnc/readdir-enhanced/lib/sync/index.js:27:21)
at Function.readdirSyncStat (/home/linuxbrew/.linuxbrew/lib/node_modules/prismic-cli/node_modules/@mrmlnc/readdir-enhanced/lib/index.js:34:10)
at ReaderSync.dynamicApi (/home/linuxbrew/.linuxbrew/lib/node_modules/prismic-cli/node_modules/yeoman-environment/node_modules/fast-glob/out/providers/reader-sync.js:64:24)
at ReaderSync.api (/home/linuxbrew/.linuxbrew/lib/node_modules/prismic-cli/node_modules/yeoman-environment/node_modules/fast-glob/out/providers/reader-sync.js:56:25)
Emitted 'error' event on Readable instance at:
at emitErrorNT (node:internal/streams/destroy:164:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/home/linuxbrew/.linuxbrew/lib/node_modules/prismic-cli/node_modules/generator-prismic-angular2/lib/generators'
}
Node.js v17.0.1
Hello team. We close the threads after a week with no new activity. If this happens and you want to continue the conversation, you can easily flag it to reopen it and add a new comment.
Thanks.
Pau
closed , flag & select 'Something Else' to reopen.
12
Threads close after a period of inactivity. Flag this thread to re-open it and continue the conversation.