@sapphire/type installation script error

$ pnpm i
Lockfile is up to date, resolution step is skipped
Packages: +327
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 327, reused 327, downloaded 0, added 0, done
node_modules/.pnpm/@sapphire+type@2.2.5-next.cf34f61.0/node_modules/@sapphire/type: Running install script, failed in 12.7s
.../node_modules/@sapphire/type install$ node-pre-gyp install --fallback-to-build
$ pnpm i
Lockfile is up to date, resolution step is skipped
Packages: +327
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 327, reused 327, downloaded 0, added 0, done
node_modules/.pnpm/@sapphire+type@2.2.5-next.cf34f61.0/node_modules/@sapphire/type: Running install script, failed in 12.7s
.../node_modules/@sapphire/type install$ node-pre-gyp install --fallback-to-build
Solution:
Okay, something odd happened, I ran pnpm add nodemon and it magically installed itself without error? I guess the solution is to install another package instead of running pnpm i
Jump to solution
8 Replies
Marino
MarinoOPβ€’2y ago
I get this error when running pnpm i Here is the package.json
{
"name": "bot",
"version": "0.0.1",
"main": "src/index.ts",
"scripts": {
"start": "node dist/index.js",
"build": "tsc",
"dev": "nodemon src/index.ts",
"release": "standard-version",
"release:minor": "standard-version --release-as minor",
"release:patch": "standard-version --release-as patch",
"release:major": "standard-version --release-as major"
},
"repository": "https://github.com/vICELANDAIR/bot.git",
"author": "Marino Franz <[email protected]>",
"license": "MIT",
"devDependencies": {
"@sapphire/cli": "^1.2.0",
"@types/node": "^18.0.3",
"@types/ws": "^8.5.3",
"nodemon": "^2.0.19",
"prettier": "^2.7.1",
"standard-version": "^9.5.0",
"ts-node": "^10.8.2",
"typescript": "^4.7.4"
},
"dependencies": {
"@sapphire/framework": "^3.0.0-next.961e0bf.0",
"@sapphire/type": "^2.2.5-next.cf34f61.0",
"@sapphire/utilities": "^3.7.1-next.5426224.0",
"axios": "^0.27.2",
"discord-api-types": "^0.36.1",
"discord.js": "^13.8.1",
"dotenv": "^16.0.1"
}
}
{
"name": "bot",
"version": "0.0.1",
"main": "src/index.ts",
"scripts": {
"start": "node dist/index.js",
"build": "tsc",
"dev": "nodemon src/index.ts",
"release": "standard-version",
"release:minor": "standard-version --release-as minor",
"release:patch": "standard-version --release-as patch",
"release:major": "standard-version --release-as major"
},
"repository": "https://github.com/vICELANDAIR/bot.git",
"author": "Marino Franz <[email protected]>",
"license": "MIT",
"devDependencies": {
"@sapphire/cli": "^1.2.0",
"@types/node": "^18.0.3",
"@types/ws": "^8.5.3",
"nodemon": "^2.0.19",
"prettier": "^2.7.1",
"standard-version": "^9.5.0",
"ts-node": "^10.8.2",
"typescript": "^4.7.4"
},
"dependencies": {
"@sapphire/framework": "^3.0.0-next.961e0bf.0",
"@sapphire/type": "^2.2.5-next.cf34f61.0",
"@sapphire/utilities": "^3.7.1-next.5426224.0",
"axios": "^0.27.2",
"discord-api-types": "^0.36.1",
"discord.js": "^13.8.1",
"dotenv": "^16.0.1"
}
}
Sawako
Sawakoβ€’2y ago
Install vs build tools
Marino
MarinoOPβ€’2y ago
Already have Can I verify my installation of it somehow?
Marino
MarinoOPβ€’2y ago
Is this the only component I need? https://lbda.net/16bN.png
Marino
MarinoOPβ€’2y ago
Actually I didn't send the whole error Apologies
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
β”‚ type.cc
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
β”‚ type.cc
I've literally tried everything now, still keep getting the same error using install-tools.bat using installer from microsoft using windows-build-tools Tried everything
Solution
Marino
Marinoβ€’2y ago
Okay, something odd happened, I ran pnpm add nodemon and it magically installed itself without error? I guess the solution is to install another package instead of running pnpm i
Favna
Favnaβ€’2y ago
your dependencies are heavily outdated btw sapphire v4 has been out for a long while and discordjs v14 In fact 3.0.0-next.961e0bf.0 is 9 months old and it's from before we made a first stable release of 3.0.0. You should really update. And if you use the latest. version of @sapphire/type then you probably get a prebuilt as well and you wouldn't even absolutely need the build tools anymore
Marino
MarinoOPβ€’2y ago
Ah yes, I realised, it’s been some time since I started making that bot πŸ˜… Sorry for the late reply
Want results from more Discord servers?
Add your server