Modules that need to be compiled from pnpm


#1

Hello, I was working with modules that need to compile from binaries between them:

  • uws (specific version: 10.148.1)
  • node-webcrypto-ossl
  • wrtc

These modules have as dependencies: node-pre-gyp, node-gyp, node-cmake … I’m not sure why pnpm does not have some modules or can not compile.

I had to use npm by activating it from the console (enable-npm) and of course, this takes a lot of disk quota space.

But when using npm I did not get errors … is there something that I did wrong or pnpm does not use modules compiled from binaries?

package.json (summary)

{
    "main": "index.js",
    "scripts": {
        "start": "node index.js"
    },
    "dependencies": {
        "jsonwebtoken": "^8.3.0",
        "node-webcrypto-ossl": "^1.0.38",
        "uws": "10.148.1",
        "wrtc": "^0.2.0"
    },
    "license": "MIT",
    "engines": {
        "node": "10.x",
        "npm": "6.x"
    },
    "private": true
}

Using this “package.json” in pnpm I have errors, when using with npm I need to add node-cmake as dependency to the top.


#2

Let us know the project name and we’ll take a look. If your project is private, either make it public temporarily or DM me a join link so we can view the code. Thanks.


#3

The project I referred to was imported from GitHub, but I exclude it. I started a new one by calling these modules in the expression template and I did not get any errors. I re-imported from GitHub and the errors persist.

imported from GitHub: https://glitch.com/~authchainjs-signaling

based on express model: https://glitch.com/~aspiring-herring