frankcbliu / awesome-nextjs-notion-blog

Deploy your own Notion-powered website in minutes with Next.js and Vercel.
https://szufrank.top/
MIT License
116 stars 104 forks source link

Run yarn and need to install Visual Studio #19

Open whale-withme opened 7 months ago

whale-withme commented 7 months ago

Hi! I like your project, but I met some bugs when type yarn at the beginning. Here is error comment:

gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:113:11)
gyp ERR! stack at VisualStudioFinder.findVisualStudio (D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:69:17)
gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
gyp ERR! stack at async createBuildDir (D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:69:26)
gyp ERR! stack at async run (D:\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18)
gyp ERR! System Windows_NT 10.0.22631
gyp ERR! command "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\EnhanceYzc\Project\awesome-nextjs-notion-blog\node_modules\sharp
gyp ERR! node -v v18.20.0

Does it need I to install vs? Oh, I use vscode when follow docs.