-
Notifications
You must be signed in to change notification settings - Fork 133
Description
Post install script fails for 7.2.0 version. It uses yarn. Our source doesn't use yarn to manage its dependencies. 7.1.1. didn't have this script.
Console Output -
amplitude-js@7.2.0 postinstall /home/ubuntu/xxxxxxxxxx/node_modules/amplitude-js
cd website/ && yarn install
sh: 1: yarn: not found
[?25l[[7m [27m[90m......[0m] \ postinstall: [32minfo[0m [35mlifecycle[0m amplitude-js@7.2.0~postinsta[0m[K]
[37;40mnpm[0m [0m[31;40mERR![0m [0m[35mcode[0m ELIFECYCLE
[0m[37;40mnpm[0m [0m[31;40mERR![0m [0m[35msyscall[0m spawn
[0m[37;40mnpm[0m [0m[31;40mERR![0m [0m[35mfile[0m sh
[0m[37;40mnpm[0m [0m[31;40mERR![0m [0m[35merrno[0m ENOENT
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m amplitude-js@7.2.0 postinstall:cd website/ && yarn install
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m spawn ENOENT
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m Failed at the amplitude-js@7.2.0 postinstall script.
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m This is probably not a problem with npm. There is likely additional logging output above.
Expected Behavior
Backward compatibility. If yarn is not available use npm.
Current Behavior
Expects Clients to have yarn as a dependency to run its post install script.
Possible Solution
Not use yarn or use npm if yarn not available. Or add yarn as a dependency.
Steps to Reproduce
- Run post install script. Don't have yarn as a package manager
Environment
Node