vscode mac m系列芯片运行报错
【代码】vscode mac m系列芯片运行报错。
·
Error: Cannot find module @rollup/rollup-darwin-x64. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
at requireWithFriendlyError (/Users/huanghao/Desktop/tang_work/medical-cabinet-management/node_modules/rollup/dist/native.js:64:9)
at Object.<anonymous> (/Users/huanghao/Desktop/tang_work/medical-cabinet-management/node_modules/rollup/dist/native.js:73:76)
at Module._compile (node:internal/modules/cjs/loader:1740:14)
at Object..js (node:internal/modules/cjs/loader:1905:10)
at Module.load (node:internal/modules/cjs/loader:1474:32)
at Function._load (node:internal/modules/cjs/loader:1286:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
at cjsLoader (node:internal/modules/esm/translators:271:5)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:204:7) {
[cause]: Error: Cannot find module '@rollup/rollup-darwin-x64'
Require stack:
可以使用arch
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "npm run dev",
"name": "Run npm dev",
"request": "launch",
"type": "node-terminal"
},
{
"command": "arch -arm64 npm run dev",
"name": "Run npm dev (ARM64)",
"request": "launch",
"type": "node-terminal"
}
]
}
DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。
更多推荐


所有评论(0)