Env info:
Running Ubuntu 18.04 in Windows 10 WSL 2.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
Globally installed prisma2:
[email protected], binary version: f608db3b9e4f50f9a384356e532357b0a525969a
package.json
"devDependencies": {
"prisma2": "^2.0.0-preview022",
"ts-node": "^8.6.2",
"typescript": "^3.7.5"
},
"dependencies": {
"@prisma/client": "^2.0.0-preview022"
}
Error
> @prisma/[email protected] postinstall [project]/node_modules/@prisma/client
> node scripts/postinstall.js
Error: Error: Command failed with ENOENT:[project]/node_modules/prisma2/query-engine-debian-openssl-1.1.x --enable_raw_queries cli
--dmmf
spawn [project]/node_modules/prisma2/query-engine-debian-openssl-1.1.x ENOENT
Reproduce:
Run: npm install
> [email protected] install [project]/node_modules/prisma2
> node download-build/index.js
> Downloading Prisma engines for debian-openssl-1.1.x [====================] 100%
> @prisma/[email protected] postinstall [project]/node_modules/@prisma/client
> node scripts/postinstall.js
Error: Error: Command failed with ENOENT:[project]/node_modules/prisma2/query-engine-debian-openssl-1.1.x --enable_raw_queries cli
--dmmf
spawn [project]/node_modules/prisma2/query-engine-debian-openssl-1.1.x ENOENT
npm WARN [email protected] No repository field.
added 11 packages from 42 contributors and audited 11 packages in 7.457s
found 0 vulnerabilities
You can see debian-openssl-1.1.x was apparently saved successfully but after the operation, I do not see it in the node_modules/prisma2 directory:
[user]@DESKTOP: [project]/node_modules/prisma2$ ls -lah
total 12K
drwxrwxrwx 1 [user] [user] 512 Feb 18 17:22 .
drwxrwxrwx 1 [user] [user] 512 Feb 18 17:22 ..
-rwxrwxrwx 1 [user] [user] 1.1K Oct 26 1985 README.md
drwxrwxrwx 1 [user] [user] 512 Feb 18 17:22 build
drwxrwxrwx 1 [user] [user] 512 Feb 18 17:22 download-build
-rwxrwxrwx 1 [user] [user] 4 Feb 18 17:22 download-done
-rwxrwxrwx 1 [user] [user] 4.1K Feb 18 17:22 package.json
drwxrwxrwx 1 [user] [user] 512 Feb 18 17:22 prisma-client
Running as sudo will produce the same error.
Env info:
Running Ubuntu 18.04 in Windows 10 WSL 2.
Globally installed prisma2:
[email protected], binary version: f608db3b9e4f50f9a384356e532357b0a525969apackage.json
Error
Reproduce:
Run: npm install
You can see
debian-openssl-1.1.xwas apparently saved successfully but after the operation, I do not see it in thenode_modules/prisma2directory:Running as sudo will produce the same error.