I'm trying to do npm install and an error appears :
Failed at the [email protected] postinstall script.
npm : 6.14.11
node : 16.15.0
I tried to delete node_modules
and then reinstall it, same error appears. what will be the solution?
I clean the cache with : npm cache clean --force
I delete the package-lock.json
I have uninstall et reinstall multiple time. I restart the computer.
I don't know what to do ...
Thanks in advance for your help
Full log under
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | -- [email protected]
52254 silly saveTree | | | | | | | `-- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | -- [email protected]
52254 silly saveTree | | | | | | -- [email protected]
52254 silly saveTree | | | | | | | `-- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | -- [email protected]
52254 silly saveTree | | | | | | | `-- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | -- [email protected]
52254 silly saveTree | | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | `-- [email protected]
52254 silly saveTree | -- @types/[email protected]
52254 silly saveTree | -- [email protected]
52254 silly saveTree | -- [email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree -- @microsoft/[email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | | -- @types/[email protected]
52254 silly saveTree | | `-- [email protected]
52254 silly saveTree | -- @types/[email protected]
52254 silly saveTree | `-- @types/[email protected]
52254 silly saveTree -- @microsoft/[email protected]
52254 silly saveTree -- @microsoft/[email protected]
52254 silly saveTree -- @microsoft/[email protected]
52254 silly saveTree | -- [email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree -- @microsoft/[email protected]
52254 silly saveTree -- @microsoft/[email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | | `-- [email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | | -- @microsoft/[email protected]
52254 silly saveTree | | -- @microsoft/[email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | -- @microsoft/[email protected]
52254 silly saveTree | | | -- @microsoft/[email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- @types/[email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | -- @microsoft/[email protected]
52254 silly saveTree | | | -- @microsoft/[email protected]
52254 silly saveTree | | | | -- @types/[email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- @uifabric/[email protected]
52254 silly saveTree | | | | | -- @uifabric/[email protected]
52254 silly saveTree | | | | | `-- @uifabric/[email protected]
52254 silly saveTree | | | | | -- @uifabric/[email protected]
52254 silly saveTree | | | | | `-- @uifabric/[email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | -- @uifabric/[email protected]
52254 silly saveTree | | | | | | `-- @uifabric/[email protected]
52254 silly saveTree | | | | | `-- @uifabric/[email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- @microsoft/[email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- @microsoft/[email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- @microsoft/[email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | | -- [email protected]
52254 silly saveTree | | | | `-- [email protected]
52254 silly saveTree | | | -- @types/[email protected]
52254 silly saveTree | | | | `-- @types/[email protected]
52254 silly saveTree | | | -- @types/[email protected]
52254 silly saveTree | | | -- @types/[email protected]
52254 silly saveTree | | | -- @uifabric/[email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | -- [email protected]
52254 silly saveTree | | | `-- [email protected]
52254 silly saveTree | | `-- @microsoft/[email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | | -- @types/[email protected]
52254 silly saveTree | | | `-- @types/[email protected]
52254 silly saveTree | | -- @types/[email protected]
52254 silly saveTree | | `-- [email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | -- [email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree -- @microsoft/[email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | | -- @types/[email protected]
52254 silly saveTree | | `-- [email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | | -- @microsoft/[email protected]
52254 silly saveTree | | `-- [email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | | `-- [email protected]
52254 silly saveTree | -- @types/[email protected]
52254 silly saveTree | -- @types/[email protected]
52254 silly saveTree | | `-- @types/[email protected]
52254 silly saveTree | -- @types/[email protected]
52254 silly saveTree | -- @uifabric/[email protected]
52254 silly saveTree | -- [email protected]
52254 silly saveTree | -- [email protected]
52254 silly saveTree | | `-- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | -- [email protected]
52254 silly saveTree | | `-- [email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree -- @pnp/[email protected]
52254 silly saveTree | -- [email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree -- @pnp/[email protected]
52254 silly saveTree | -- @microsoft/[email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree -- @pnp/[email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree -- @pnp/[email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree -- @pnp/[email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree -- @pnp/[email protected]
52254 silly saveTree | -- @pnp/[email protected]
52254 silly saveTree | | `-- [email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree | -- @uifabric/[email protected]
52254 silly saveTree | | `-- @uifabric/[email protected]
52254 silly saveTree | | -- @uifabric/[email protected]
52254 silly saveTree | | `-- @uifabric/[email protected]
52254 silly saveTree | -- @uifabric/[email protected]
52254 silly saveTree | -- @uifabric/[email protected]
52254 silly saveTree | `-- @uifabric/[email protected]
52254 silly saveTree -- @pnp/[email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree | `-- [email protected]
52254 silly saveTree -- @types/[email protected]
52254 silly saveTree -- @types/[email protected]
52254 silly saveTree -- @types/[email protected]
52254 silly saveTree -- @types/[email protected]
52254 silly saveTree | `-- @types/[email protected]
52254 silly saveTree | `-- @types/[email protected]
52254 silly saveTree -- @types/[email protected]
52254 silly saveTree -- @types/[email protected]
52254 silly saveTree -- [email protected]
52254 silly saveTree -- [email protected]
52254 silly saveTree -- [email protected]
52254 silly saveTree -- [email protected]
52254 silly saveTree -- [email protected]
52254 silly saveTree `-- [email protected]
52255 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.3 (node_modules\sane\node_modules\fsevents):
52256 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
52257 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
52257 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
52257 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: win32
52257 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
52258 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules\chokidar\node_modules\fsevents):
52259 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
52260 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
52260 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
52260 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: win32
52260 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
52261 verbose stack Error: [email protected] postinstall: `node scripts/build.js`
52261 verbose stack Exit status 1
52261 verbose stack at EventEmitter.<anonymous> (C:\Users\EthanMarchand-BS-Tea\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
52261 verbose stack at EventEmitter.emit (node:events:527:28)
52261 verbose stack at ChildProcess.<anonymous> (C:\Users\EthanMarchand-BS-Tea\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
52261 verbose stack at ChildProcess.emit (node:events:527:28)
52261 verbose stack at maybeClose (node:internal/child_process:1092:16)
52261 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
52262 verbose pkgid [email protected]
52263 verbose cwd C:\Users\EthanMarchand-BS-Tea\source\repos\spfx-birthdays-so-webpart
52264 verbose Windows_NT 10.0.19044
52265 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\EthanMarchand-BS-Tea\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
52266 verbose node v16.15.0
52267 verbose npm v6.14.11
52268 error code ELIFECYCLE
52269 error errno 1
52270 error [email protected] postinstall: `node scripts/build.js`
52270 error Exit status 1
52271 error Failed at the [email protected] postinstall script.
52271 error This is probably not a problem with npm. There is likely additional logging output above.
52272 verbose exit [ 1, true ]
CodePudding user response:
Warning: node-sass is deprecated.
Once said, you try to install node-sass v4.9.3 on node v16.15 which is not ok according to node-sass doc: https://www.npmjs.com/package/node-sass
Try update your package.json to use the good node-sass version ie 6.0 or use node 14.x with node-sass v4.9.3.