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

add package(rollup-darwin-arm64) for arm64 #66

Closed
wants to merge 1 commit into from

Conversation

tadashimasuda
Copy link
Contributor

/Users/tadashi/Projects/aiit/pbl/drump/node_modules/rollup/dist/native.js:64
throw new Error(
^

Error: Cannot find module @rollup/rollup-darwin-arm64. npm has a bug related to optional dependencies (npm/cli#4828). Please try npm i again after removing both package-lock.json and node_modules directory.
at requireWithFriendlyError (/Users/tadashi/Projects/aiit/pbl/drump/node_modules/rollup/dist/native.js:64:9)
at Object. (/Users/tadashi/Projects/aiit/pbl/drump/node_modules/rollup/dist/native.js:73:76)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Object.transformer (/Users/tadashi/Projects/aiit/pbl/drump/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1186)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at cjsLoader (node:internal/modules/esm/translators:348:17)
at ModuleWrap. (node:internal/modules/esm/translators:297:7)
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24) {
[cause]: Error: Cannot find module '@rollup/rollup-darwin-arm64'
Require stack:

  • /Users/tadashi/Projects/aiit/pbl/drump/node_modules/rollup/dist/native.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at nextResolveSimple (/Users/tadashi/Projects/aiit/pbl/drump/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:942)
    at /Users/tadashi/Projects/aiit/pbl/drump/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:2550
    at /Users/tadashi/Projects/aiit/pbl/drump/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1624
    at resolveTsPaths (/Users/tadashi/Projects/aiit/pbl/drump/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:760)
    at /Users/tadashi/Projects/aiit/pbl/drump/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:1038
    at m._resolveFilename (file:///Users/tadashi/Projects/aiit/pbl/drump/node_modules/tsx/dist/register-RyGUjI6j.mjs:1:789)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/Users/tadashi/Projects/aiit/pbl/drump/node_modules/rollup/dist/native.js'
    ]
    }
    }

上記npm run startでのエラー
package追加で動作確認済み

@shunya9811
Copy link
Contributor

提示されているエラーは、pull時に発生するものでしょうか?
rm -rf package-lock.json node_modules/
高嶋さんとかも、上記コマンドを実行することで対応していたように思うのですが、今回はそのエラーに対応をしていただいたという認識で合っていますか?

また、rollup-darwin-arm64を指定している点についてですが、これはApple Silicon搭載のMac専用の依存関係になっているように見受けられますね。

@tadashimasuda
Copy link
Contributor Author

@shunya9811 いけたんでクローズしときます。

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

Successfully merging this pull request may close these issues.

2 participants