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

Another Module Not Found error #7

Open
2 tasks done
efeDaniels opened this issue May 20, 2022 · 7 comments
Open
2 tasks done

Another Module Not Found error #7

efeDaniels opened this issue May 20, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@efeDaniels
Copy link

Checklist

Description

Hey man, sorry to ask but I searched for 2 hours to solve this and looked all asked questions in the main code. Getting this error when I runnode index.jsand have no clue how to solve it. Thanks for your other answers to the other users, would be appreciated if you can help.

efe@192 hashlips_art_engine % node index.js
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module '/Users/efe/Desktop/obie_nft/hashlips_art_engine/node_modules/canvas/build/Release/canvas.node'
Require stack:
- /Users/efe/Desktop/obie_nft/hashlips_art_engine/src/main.js
- /Users/efe/Desktop/obie_nft/hashlips_art_engine/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/efe/Desktop/obie_nft/hashlips_art_engine/src/main.js:28:5)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/efe/Desktop/obie_nft/hashlips_art_engine/src/main.js',
    '/Users/efe/Desktop/obie_nft/hashlips_art_engine/index.js'
  ]
}

Steps to reproduce

No response

Expected result

No response

Actual result

No response

Environment

OS Version (uname -a on unix, systeminfo on windows):
Node.js version (node -v):16.13.0

@efeDaniels efeDaniels added the bug Something isn't working label May 20, 2022
@bolshoytoster
Copy link
Owner

@efeDaniels could you paste the output of running find . -name canvas.node here please.

@efeDaniels
Copy link
Author

Sure, here:

efe@192 ~ % find . -name canvas.node
find: ./Library/Application Support/CallHistoryTransactions: Operation not permitted
find: ./Library/Application Support/CloudDocs/session/db: Operation not permitted
find: ./Library/Application Support/com.apple.sharedfilelist: Operation not permitted
find: ./Library/Application Support/Knowledge: Operation not permitted
find: ./Library/Application Support/com.apple.TCC: Operation not permitted
find: ./Library/Application Support/FileProvider: Operation not permitted
find: ./Library/Application Support/com.apple.avfoundation/Frecents: Operation not permitted
find: ./Library/Application Support/CallHistoryDB: Operation not permitted
find: ./Library/Assistant/SiriVocabulary: Operation not permitted
find: ./Library/Autosave Information: Operation not permitted
find: ./Library/IdentityServices: Operation not permitted
find: ./Library/Messages: Operation not permitted
find: ./Library/HomeKit: Operation not permitted
find: ./Library/Sharing: Operation not permitted
find: ./Library/Mail: Operation not permitted
find: ./Library/DuetExpertCenter: Operation not permitted
find: ./Library/Accounts: Operation not permitted
find: ./Library/Safari: Operation not permitted
find: ./Library/Biome: Operation not permitted
find: ./Library/Shortcuts: Operation not permitted
find: ./Library/Suggestions: Operation not permitted
find: ./Library/Group Containers/group.com.apple.secure-control-center-preferences: Operation not permitted
find: ./Library/Group Containers/group.com.apple.notes: Operation not permitted
find: ./Library/Containers/com.apple.VoiceMemos: Operation not permitted
find: ./Library/Containers/com.apple.archiveutility: Operation not permitted
find: ./Library/Containers/com.apple.Home: Operation not permitted
find: ./Library/Containers/com.apple.Safari: Operation not permitted
find: ./Library/Containers/com.apple.CloudDocs.MobileDocumentsFileProvider: Operation not permitted
find: ./Library/Containers/com.apple.mail: Operation not permitted
find: ./Library/Containers/com.apple.Notes: Operation not permitted
find: ./Library/Containers/com.apple.news: Operation not permitted
find: ./Library/Containers/com.apple.corerecents.recentsd/Data/Library/Recents: Operation not permitted
find: ./Library/Containers/com.apple.stocks: Operation not permitted
find: ./Library/PersonalizationPortrait: Operation not permitted
find: ./Library/Metadata/CoreSpotlight: Operation not permitted
find: ./Library/Metadata/com.apple.IntelligentSuggestions: Operation not permitted
find: ./Library/Cookies: Operation not permitted
find: ./Library/CoreFollowUp: Operation not permitted
find: ./Library/StatusKit: Operation not permitted
find: ./Library/Caches/com.apple.HomeKit: Operation not permitted
find: ./Library/Caches/CloudKit: Operation not permitted
find: ./Library/Caches/com.apple.Safari: Operation not permitted
find: ./Library/Caches/com.apple.findmy.fmfcore: Operation not permitted
find: ./Library/Caches/FamilyCircle: Operation not permitted
find: ./Library/Caches/com.apple.homed: Operation not permitted
find: ./Library/Caches/com.apple.findmy.fmipcore: Operation not permitted
find: ./Library/Caches/com.apple.ap.adprivacyd: Operation not permitted
find: ./.Trash: Operation not permitted

@bolshoytoster
Copy link
Owner

@efeDaniels could you run it at the root of your project? (run cd /Users/efe/Desktop/obie_nft/hashlips_art_engine to get there)

From that output, it looks like thte file doesn't exist, could you run npm install and paste any errors you get here please.

@efeDaniels
Copy link
Author

I'm nor getting any outputs when I run the command ( find . -name canvas.node) in the project.

Getting this when I run npm install :

efe@192 hashlips_art_engine % npm install

up to date, audited 67 packages in 844ms

6 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

@efeDaniels
Copy link
Author

efeDaniels commented May 20, 2022

I'm not getting any outputs when I run the command ( find . -name canvas.node) in the project.

Getting this when I run npm install :

efe@192 hashlips_art_engine % npm install

up to date, audited 67 packages in 844ms

6 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

@bolshoytoster
Copy link
Owner

@efeDaniels

I'm nor getting any outputs when I run the command ( find . -name canvas.node) in the project.

That means the canvas.node doesn't exist.
This stackoverflow answer suggests running npm uninstall canvas then npm i canvas. If that doesn't work you could try looking at some other answers under that question.

@efeDaniels
Copy link
Author

I did try npm uninstall canvas and npm i canvas at least 5 times before I ask you but I was doing that from project's terminal. Did it from main terminal and solved the issue. Appreciate it man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants