-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cannot find module 'node-linux-arm/package.json' #59
Comments
I did a bit of digging and found the following. unfortunately,
The node packages that are available on npmjs.org use a different naming convention and spell out the specific architecture version relevant bit of code from instalArchSpecificPackage from node-bin-setup function below var platform = process.platform == 'win32' ? 'win' : process.platform;
var arch = platform == 'win' && process.arch == 'ia32' ? 'x86' : process.arch;
var cp = spawn(platform == 'win' ? 'npm.cmd' : 'npm', ['install', '--no-save', ['node', platform, arch].join('-') + '@' + version], {
stdio: 'inherit',
shell: true
}) Note how there's additional handling for windows flavor of process.arch. Similar additional handling needs to be added for arm architecture. |
Hey Guys, `error /usr/src/app/node_modules/node: Command failed. npm ERR! A complete log of this run can be found in: Error: Cannot find module 'node-linux-arm/package.json'
The answer describes really nice what the problem is, but how can I solve this? I need to install node in the docker container when building it. I found a way to install node globally on my Pi, but how can I install it in my container when building it on the Pi? It would be so great if anybody could help me. |
similar issue with M1 chip: #124 |
View the solution to the similar issue: #124 |
We really need this issue resolved: #126 |
Any update on the issue ? Just trying to install an existing project on a Raspberry Pi 3 and got the same error (architecture being |
Any updates? Making it very difficult to develop from a pi. |
Somehow there is already a discussion about this fix but not linked to here: |
Nodejs Version: v11.9.0
Platform: Linux alarmpi 4.14.97-1-ARCH #1 SMP Tue Feb 5 20:10:34 UTC 2019 armv7l GNU/Linux
How to reproduce on my system:
npm init
npm install node --save
Or npm install on any existing project
The text was updated successfully, but these errors were encountered: