You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
preset init 可能会出现以下错误
✖ Operation cancelled
node:internal/readline/emitKeypressEvents:71
throw err;
^
TypeError: Cannot read properties of undefined (reading 'disabled')
at SelectPrompt.submit (C:\Users\69046\AppData\Roaming\npm\node_modules\create-preset\node_modules_prompts@2.4.2@prompts\lib\elements\select.js:68:25)
at ReadStream.keypress (C:\Users\69046\AppData\Roaming\npm\node_modules\create-preset\node_modules_prompts@2.4.2@prompts\lib\elements\prompt.js:32:16)
at ReadStream.emit (node:events:527:28)
at emitKeys (node:internal/readline/utils:358:14)
at emitKeys.next ()
at ReadStream.onData (node:internal/readline/emitKeypressEvents:61:36)
at ReadStream.emit (node:events:539:35)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at ReadStream.Readable.push (node:internal/streams/readable:228:10)
preset init 可能会出现以下错误
✖ Operation cancelled
node:internal/readline/emitKeypressEvents:71
throw err;
^
TypeError: Cannot read properties of undefined (reading 'disabled')
at SelectPrompt.submit (C:\Users\69046\AppData\Roaming\npm\node_modules\create-preset\node_modules_prompts@2.4.2@prompts\lib\elements\select.js:68:25)
at ReadStream.keypress (C:\Users\69046\AppData\Roaming\npm\node_modules\create-preset\node_modules_prompts@2.4.2@prompts\lib\elements\prompt.js:32:16)
at ReadStream.emit (node:events:527:28)
at emitKeys (node:internal/readline/utils:358:14)
at emitKeys.next ()
at ReadStream.onData (node:internal/readline/emitKeypressEvents:61:36)
at ReadStream.emit (node:events:539:35)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at ReadStream.Readable.push (node:internal/streams/readable:228:10)
安装需要添加 --unsafe-perm
win: npm i -g create-preset --unsafe-perm
mac:sudo npm -g create-preset --unsafe-perm
建议写进文档
The text was updated successfully, but these errors were encountered: